Fix handling for URIs requested before window is open on Windows

This commit is contained in:
Alex Liebowitz 2017-05-10 04:30:26 -04:00
parent d44d5806fd
commit b189b31347

View file

@ -327,5 +327,9 @@ if (process.platform == 'darwin') {
});
} else if (process.argv.length >= 3) {
// No open-url event on Win, but we can still handle URIs provided at launch time
win.webContents.send('open-uri-requested', process.argv[2]);
if (!win) {
openUri = process.argv[2];
} else {
win.webContents.send('open-uri-requested', process.argv[2]);
}
}