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
This commit is contained in:
Adrian DC 2019-04-19 19:21:36 +02:00 committed by Ronan Jouchet
parent 070efe6fa9
commit b959956a38
1 changed files with 1 additions and 1 deletions

View File

@ -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;