Skip to content

Commit

Permalink
demo failing case
Browse files Browse the repository at this point in the history
  • Loading branch information
hadeeb committed Jun 7, 2019
1 parent afbddf2 commit f3d4be4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions test/fixture.js
Expand Up @@ -6,9 +6,10 @@ const loadUrl = serve({directory: __dirname});


let mainWindow; let mainWindow;


(async () => { // This fails as protocol is not registered yet.
await app.whenReady(); // protocol is registered after app.whenReady(),

// which is resolved after 'ready' event is emitted.
app.on('ready', () => {
mainWindow = new BrowserWindow(); mainWindow = new BrowserWindow();
loadUrl(mainWindow); loadUrl(mainWindow);
})(); });

0 comments on commit f3d4be4

Please sign in to comment.