Skip to content

Commit e63baf6

Browse files
committed
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>
1 parent 0fb6a30 commit e63baf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎electron_app/src/electron-main.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirector
156156

157157
if (shouldQuit) {
158158
console.log("Other instance detected: exiting");
159-
electron.app.quit()
159+
electron.app.exit();
160160
}
161161

162162
electron.app.on('ready', () => {

0 commit comments

Comments
 (0)