mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2024-12-23 02:28:55 +00:00
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:
parent
070efe6fa9
commit
b959956a38
@ -15,7 +15,7 @@ const electronSquirrelStartup = require('electron-squirrel-startup');
|
|||||||
// Entrypoint for electron-squirrel-startup.
|
// Entrypoint for electron-squirrel-startup.
|
||||||
// See https://github.com/jiahaog/nativefier/pull/744 for sample use case
|
// See https://github.com/jiahaog/nativefier/pull/744 for sample use case
|
||||||
if (electronSquirrelStartup) {
|
if (electronSquirrelStartup) {
|
||||||
app.quit();
|
app.exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
const { isOSX } = helpers;
|
const { isOSX } = helpers;
|
||||||
|
Loading…
Reference in New Issue
Block a user