Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
macOS: Fix "main window cannot be activated" (fix #1415, PR #1417)
Browse files Browse the repository at this point in the history
  • Loading branch information
spywhere committed Jul 30, 2022
1 parent b362fbe commit 57636b9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/src/components/mainWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ export async function createMainWindow(
await clearCache(mainWindow);
}

if (options.targetUrl) {
await mainWindow.loadURL(options.targetUrl);
}

setupCloseEvent(options, mainWindow);

return mainWindow;
Expand Down
4 changes: 4 additions & 0 deletions app/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,10 @@ async function onReady(): Promise<void> {
})
.catch((err) => log.error('dialog.showMessageBox ERROR', err));
}

if (appArgs.targetUrl) {
await mainWindow.loadURL(appArgs.targetUrl);
}
}

app.on(
Expand Down

0 comments on commit 57636b9

Please sign in to comment.