Skip to content

Commit

Permalink
delay initExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettCleary committed Oct 1, 2024
1 parent 4c31b82 commit e65fc2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,6 @@ if (!gotTheLock) {
const openOverlayAcceleratorMac = 'Option+X'
globalShortcut.register(openOverlayAcceleratorMac, toggle)

initExtension(hpApi)
initOverlay(hpApi)

initOnlineMonitor()
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit e65fc2d

Please sign in to comment.