Skip to content

Commit

Permalink
♻️ Update version electron to 4.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
massao authored and yasharAyari committed Jul 1, 2019
1 parent 4cb772f commit 169a03b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ app.on('activate', () => {
app.setAsDefaultProtocolClient('lisk');

// Force single instance application
const isSecondInstance = app.makeSingleInstance((argv) => {
app.requestSingleInstanceLock();
app.on('second-instance', (argv) => {
if (process.platform !== 'darwin') {
win.send({ event: 'openUrl', value: argv[1] || '/' });
}
Expand All @@ -78,10 +79,6 @@ const isSecondInstance = app.makeSingleInstance((argv) => {
}
});

if (isSecondInstance) {
app.exit();
}

// ToDo - enable this feature when it is implemented in the new design
app.on('will-finish-launching', () => {
// Protocol handler for MacOS
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"cypress": "3.3.1",
"cypress-pipe": "1.3.3",
"del-cli": "1.1.0",
"electron": "3.0.11",
"electron": "4.2.4",
"electron-builder": "20.38.3",
"electron-ipc-mock": "0.0.3",
"electron-json-storage": "4.1.5",
Expand Down

0 comments on commit 169a03b

Please sign in to comment.