Skip to content
This repository has been archived by the owner on Jun 20, 2022. It is now read-only.

Commit

Permalink
Add warn before second instance quit
Browse files Browse the repository at this point in the history
  • Loading branch information
moughxyz committed May 29, 2019
1 parent 41c9ec8 commit 0c6e055
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/index.js
Expand Up @@ -163,6 +163,7 @@ const isSecondInstance = app.makeSingleInstance((commandLine, workingDirectory)
app.on('ready', function(){

if (isSecondInstance) {
console.warn("Quiting app and focusing existing instance.");
app.quit()
} else {
if(!win) {
Expand Down

0 comments on commit 0c6e055

Please sign in to comment.