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 Linux - Closes #909
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Oct 26, 2017
1 parent fccb2bc commit 53d268c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ function createWindow() {
win.on('blur', () => win.webContents.send('blur'));
win.on('focus', () => win.webContents.send('focus'));

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

Menu.setApplicationMenu(buildMenu(app, copyright, i18n));
Expand Down Expand Up @@ -142,8 +142,8 @@ app.setAsDefaultProtocolClient(protocolName);

// Force single instance application
const isSecondInstance = app.makeSingleInstance((argv) => {
if (process.platform === 'win32') {
sendUrlToRouter(argv.slice(1));
if (process.platform !== 'darwin') {
sendUrlToRouter(argv[1] || '');
}
if (win) {
if (win.isMinimized()) win.restore();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"css-loader": "0.28.7",
"cucumber": "2.2.0",
"del-cli": "1.1.0",
"electron": "1.7.8",
"electron": "1.8.1",
"electron-builder": "19.32.2",
"electron-json-storage": "^3.2.0",
"enzyme": "2.9.1",
Expand Down

0 comments on commit 53d268c

Please sign in to comment.