mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-03 20:32:08 -04:00
Wait for main window to load
This commit is contained in:
@@ -23,7 +23,7 @@ async function main() {
|
|||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
mainWin.loadFile('control.html')
|
await mainWin.loadFile('control.html')
|
||||||
mainWin.webContents.on('will-navigate', (ev, url) => {
|
mainWin.webContents.on('will-navigate', (ev, url) => {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
shell.openExternal(url)
|
shell.openExternal(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user