From aeffe09459e9286a6693e2cffd84fb24a6561894 Mon Sep 17 00:00:00 2001 From: Knkajfw Date: Tue, 29 Sep 2020 15:37:20 +0800 Subject: [PATCH] sync port back to 2999 --- assets/js/renderer.js | 2 +- main.js | 10 +++++----- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/js/renderer.js b/assets/js/renderer.js index 4ce70a3..5b7e0ec 100644 --- a/assets/js/renderer.js +++ b/assets/js/renderer.js @@ -1,6 +1,6 @@ const { ipcRenderer, shell } = require('electron'); const qrcode = require('qrcode'); -const pldVersion = 145; +const pldVersion = 146; var canvas = document.getElementById('canvas'); var referLink = ''; diff --git a/main.js b/main.js index 8ff4f7c..8a0223e 100644 --- a/main.js +++ b/main.js @@ -114,7 +114,7 @@ function typeit() { } function getActivePlayerName(mobileClientId) { - const getActivePlayerNameReq = net.request('https://127.0.0.1:8291/liveclientdata/activeplayername'); + const getActivePlayerNameReq = net.request('https://127.0.0.1:2999/liveclientdata/activeplayername'); getActivePlayerNameReq.on('error', (error) => { console.error('getActivePlayerNameErr', error.message); }) @@ -128,7 +128,7 @@ function getActivePlayerName(mobileClientId) { } function getActivePlayerNameForLv(mobileClientId) { - const getActivePlayerNameForLvReq = net.request('https://127.0.0.1:8291/liveclientdata/activeplayername'); + const getActivePlayerNameForLvReq = net.request('https://127.0.0.1:2999/liveclientdata/activeplayername'); getActivePlayerNameForLvReq.on('error', (error) => { console.error('getActivePlayerNameForLvReqErr', error.message); }) @@ -142,7 +142,7 @@ function getActivePlayerNameForLv(mobileClientId) { } function requestPlayerList(mobileClientId) { - const playerListReq = net.request('https://127.0.0.1:8291/liveclientdata/playerlist'); + const playerListReq = net.request('https://127.0.0.1:2999/liveclientdata/playerlist'); playerListReq.on('error', (error) => { console.error('playerListReqErr:', error.message); }) @@ -168,7 +168,7 @@ function requestPlayerList(mobileClientId) { } function requestPlayerListForLv(mobileClientId) { - const playerListForLvReq = net.request('https://127.0.0.1:8291/liveclientdata/playerlist'); + const playerListForLvReq = net.request('https://127.0.0.1:2999/liveclientdata/playerlist'); playerListForLvReq.on('error', (error) => { console.error('playerListForLvReqErr:', error.message); }) @@ -250,7 +250,7 @@ function trimSummonerSpells() { } function getGameTime() { - const gtimereq = net.request('https://127.0.0.1:8291/liveclientdata/gamestats'); + const gtimereq = net.request('https://127.0.0.1:2999/liveclientdata/gamestats'); gtimereq.on('error', (error) => { console.error('getGameTimeReqErr', error.message); }) diff --git a/package-lock.json b/package-lock.json index bce7a8c..6c8a4bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "pastelikedoinb", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 53dee8f..2f23b59 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pastelikedoinb", - "version": "2.0.4", + "version": "2.0.5", "description": "An app that generates and auto-type LOL flash tracking messages", "main": "main.js", "scripts": {