From e63baf62c44e54a6704597570067f8380989b6e3 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 26 May 2017 09:49:23 +0100 Subject: [PATCH] quit -> exit as screen is not accessible in alt instance when using makeSingleInstance which leads to a weird error Unhandled exception { Error: Cannot find module '../screen' Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- electron_app/src/electron-main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron_app/src/electron-main.js b/electron_app/src/electron-main.js index 9170d4b495..0df1662b80 100644 --- a/electron_app/src/electron-main.js +++ b/electron_app/src/electron-main.js @@ -156,7 +156,7 @@ const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirector if (shouldQuit) { console.log("Other instance detected: exiting"); - electron.app.quit() + electron.app.exit(); } electron.app.on('ready', () => {