Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix launch protocol on Windows - Closes #928
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Oct 27, 2017
1 parent b852cfd commit ae5f314
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function createWindow() {
win.on('focus', () => win.webContents.send('focus'));

if (process.platform === 'win32') {
sendUrlToRouter(process.argv.slice(1));
sendUrlToRouter(process.argv[1] || '/');
}

Menu.setApplicationMenu(buildMenu(app, copyright, i18n));
Expand Down Expand Up @@ -143,7 +143,7 @@ app.setAsDefaultProtocolClient(protocolName);
// Force single instance application
const isSecondInstance = app.makeSingleInstance((argv) => {
if (process.platform === 'win32') {
sendUrlToRouter(argv.slice(1));
sendUrlToRouter(argv[1] || '/');
}
if (win) {
if (win.isMinimized()) win.restore();
Expand Down

0 comments on commit ae5f314

Please sign in to comment.