ELECTRON-1366 - Prevent javascript error related to screen module (#713)

This commit is contained in:
Kiran Niranjan 2019-07-10 12:00:20 +05:30 committed by Vishwas Shashidhar
parent da36f5df54
commit d9c52ae745

View File

@ -96,7 +96,7 @@ if (!allowMultiInstance) {
// quit if another instance is already running, ignore for dev env or if app was started with multiInstance flag
if (!gotTheLock) {
logger.info(`main: got the lock hence closing the new instance`, { gotTheLock });
app.quit();
app.exit();
} else {
logger.info(`main: Creating the first instance of the application`);
app.on('second-instance', (_event, argv) => {