From e65fc2d32535580c9f1fae4bcfd9690014751b86 Mon Sep 17 00:00:00 2001 From: Brett <27568879+BrettCleary@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:44:11 -0700 Subject: [PATCH] delay initExtension --- src/backend/main.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/backend/main.ts b/src/backend/main.ts index 832cec21f..480c3c3da 100644 --- a/src/backend/main.ts +++ b/src/backend/main.ts @@ -489,7 +489,6 @@ if (!gotTheLock) { const openOverlayAcceleratorMac = 'Option+X' globalShortcut.register(openOverlayAcceleratorMac, toggle) - initExtension(hpApi) initOverlay(hpApi) initOnlineMonitor() @@ -685,8 +684,10 @@ ipcMain.once('loadingScreenReady', () => { logInfo('Loading Screen Ready', LogPrefix.Backend) }) -ipcMain.once('frontendReady', () => { +ipcMain.once('frontendReady', async () => { logInfo('Frontend Ready', LogPrefix.Backend) + await initExtension(hpApi) + ipcMain.emit('reloadApp') handleProtocol([openUrlArgument, ...process.argv]) setTimeout(() => { logInfo('Starting the Download Queue', LogPrefix.Backend)