Wait for main window to load

This commit is contained in:
Max Goodhart
2020-06-16 15:08:28 -07:00
parent c3af2f00be
commit 3dcc047661

View File

@@ -23,7 +23,7 @@ async function main() {
nodeIntegration: true,
},
})
mainWin.loadFile('control.html')
await mainWin.loadFile('control.html')
mainWin.webContents.on('will-navigate', (ev, url) => {
ev.preventDefault()
shell.openExternal(url)