Windows URI handling #121

Merged
alexliebowitz merged 8 commits from windows-linux-uris into master 2017-05-12 22:46:49 +02:00
Showing only changes of commit d888707d56 - Show all commits

View file

@ -194,19 +194,17 @@ function quitNow() {
}
const isSecondaryInstance = app.makeSingleInstance((argv) => {
if (argv.length < 2) {
return;
}
if (!win) {
openUri = denormalizeUri(argv[1]);
} else {
if (win) {
if (win.isMinimized()) {
win.restore();
win.focus();
}
win.focus();
win.webContents.send('open-uri-requested', denormalizeUri(argv[1]));
if (argv.length >= 2) {
win.webContents.send('open-uri-requested', denormalizeUri(argv[1]));
}
} else if (argv.length >= 2) {
openUri = denormalizeUri(argv[1]);
}
});