From b959956a38ce51a9dd95d42308f0a6c66489b624 Mon Sep 17 00:00:00 2001 From: Adrian DC Date: Fri, 19 Apr 2019 19:21:36 +0200 Subject: [PATCH] Squirrel: resolve .quit() issue with missing ../screen (PR #784) * As explained in: https://github.com/electron/electron/issues/8862#issuecomment-294303518 an issue with .quit() exists with a "Cannot find module '../screen'" issue, while using the .exit() alternative avoids the issue * Validated on Windows with the same logic as #744 where the issue recently appeared --- app/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main.js b/app/src/main.js index 9c5ab12..343c9c2 100644 --- a/app/src/main.js +++ b/app/src/main.js @@ -15,7 +15,7 @@ const electronSquirrelStartup = require('electron-squirrel-startup'); // Entrypoint for electron-squirrel-startup. // See https://github.com/jiahaog/nativefier/pull/744 for sample use case if (electronSquirrelStartup) { - app.quit(); + app.exit(); } const { isOSX } = helpers;