Skip to content

Commit 67d22dd

Browse files
committed
Navbar style and convert Powershell command to support Win7 OS
1 parent b6bc9c8 commit 67d22dd

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "Lytical",
33
"author": "downthecrop",
44
"description": "Lytical is an open source League of Legends statistics and profile analytics tool for all regions including Garena & WeGame",
5-
"version": "1.0.6",
5+
"version": "1.0.7",
66
"private": true,
77
"scripts": {
88
"serve": "vue-cli-service serve",

src/LobbyView.vue

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default {
102102
watch: {
103103
$route() {
104104
// Unregister the listener..
105-
console.log('Unregistering Listeners on Pregame');
105+
console.log('Unregistering Listeners on Lobby');
106106
ipcRenderer.removeListener('asynchronous-reply', this.ondata);
107107
clearInterval(this.polling);
108108
},
@@ -157,20 +157,23 @@ export default {
157157
158158
// We have diconnected or auth error..
159159
if (data.reply_type === 'lcu-disonnceted') {
160-
console.log('Disconnected..');
161160
this.showError = true;
162161
document.title = 'Lytical - Disconnected';
163-
} else if (this.showError) {
162+
return;
163+
}
164+
165+
if (this.showError) {
164166
this.showError = false;
165167
document.title = 'Lytical';
166168
}
169+
this.clearErrorTimeout(this.timeout);
167170
168171
// Valid reply handlers
169172
switch (data.reply_type) {
170173
case 'lol-champ-select': {
171-
this.clearErrorTimeout(this.timeout);
172174
document.title = 'Lytical - Champion Select';
173175
this.lobbyData = data;
176+
// We should be setting the gameid on the lobby and checking that instead
174177
if (!this.lobbyPlayers.length) {
175178
for (const player of this.lobbyData.myTeam) {
176179
this.getSummonerById(player.summonerId);
@@ -179,7 +182,6 @@ export default {
179182
break;
180183
}
181184
case 'current-session': {
182-
this.clearErrorTimeout(this.timeout);
183185
if (data.phase === 'InProgress' && (this.gameId !== data.gameData.gameId)) {
184186
document.title = 'Lytical - Live Game';
185187
this.lobbyData = data;

src/components/Navbar.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</form>
2424
</div>
2525
<!-- Settings Menu Button -->
26-
<div style="position:absolute;right:12px;top:12px;margin:0 auto;">
26+
<div style="position:absolute;right:20px;top:12px;margin:0 auto;">
2727
<img @click="reload()"
2828
:src='`assets/refresh-svg.svg`'
2929
style="height:20px;opacity:.2;padding-right:10px;color:white;">
@@ -135,6 +135,7 @@ input[type="search"]:focus::-webkit-search-cancel-button {
135135
z-index:100;
136136
display: flex;
137137
top:0px;
138+
padding-left:5px;
138139
left:0px;
139140
height:42px;
140141
position:fixed;
@@ -156,7 +157,7 @@ input[type="search"]:focus::-webkit-search-cancel-button {
156157
.item {
157158
font-weight: lighter;
158159
padding:10px;
159-
padding-left:25px;
160+
padding-left:15px;
160161
font-size: 20px;
161162
display: flex;
162163
}

src/res/lcu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ exports.getAuthFromProcess = async () => {
1212
return new Promise((resolve, reject) => {
1313
exec(
1414
// eslint-disable-next-line max-len
15-
'Get-CimInstance Win32_Process -Filter "name = \'LeagueClientUx.exe\'" | Select-Object -Property CommandLine | ft -HideTableHeaders | out-string -Width 4096',
15+
'Get-WmiObject Win32_Process -Filter "name = \'LeagueClientUx.exe\'" | Select-Object -Property CommandLine | ft -HideTableHeaders | out-string -Width 4096',
1616
{ shell: 'powershell.exe' },
1717
(error, stdout) => {
1818
try {

0 commit comments

Comments
 (0)