Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
OothecaPickle committed Dec 4, 2024
1 parent 51c158d commit b6bf702
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1491,7 +1491,9 @@ function runApp() {
if (mainWindow === 'all-windows-closed') {
app.once('browser-window-created', (_, mainWindow) => {
mainWindow.webContents.once('did-finish-load', () => {
setTimeout(function() { mainWindow.webContents.send(IpcChannels.OPEN_URL, baseUrl(url), { isLaunchLink: true }) }, 1000)
// A timeout here is necessary or the new window won't receive the URL
setTimeout(function() { mainWindow.webContents.send(
IpcChannels.OPEN_URL, baseUrl(url), { isLaunchLink: true }) }, 1000)
})
})
createWindow()
Expand Down

0 comments on commit b6bf702

Please sign in to comment.