diff --git a/electron-builder.yml b/electron-builder.yml index a934f3b..45cd01b 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,6 +1,5 @@ appId: com.krunkercivilian.client productName: Krunker Civilian Client -electronDist: node_modules/electron/dist directories: output: out buildResources: build diff --git a/src/preload/index.ts b/src/preload/index.ts index f812ba3..aa55d63 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -1493,9 +1493,7 @@ ipcRenderer.on('main_did-finish-load', () => { } // ── In-game Accounts quick-switch button ── if (isGamePage) { - ipcRenderer.invoke('alt-list').then((accounts: any[]) => { - if (!accounts || accounts.length === 0) return; - + ipcRenderer.invoke('alt-list').then(() => { const altBtn = document.createElement('div'); altBtn.id = 'kpcAltBtn'; altBtn.className = 'menuItem';