[Bootstrap] Minor source cleanup
This commit is contained in:
parent
86b3f0992e
commit
72842faf85
|
@ -142,14 +142,8 @@ module.exports = () => {
|
||||||
desktopCore?.handleOpenUrl?.(a.includes('--url') && a[a.indexOf('--') + 1]); // Change url of main window if protocol is used (uses like "discord --url -- discord://example")
|
desktopCore?.handleOpenUrl?.(a.includes('--url') && a[a.indexOf('--') + 1]); // Change url of main window if protocol is used (uses like "discord --url -- discord://example")
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!app.requestSingleInstanceLock() && !(process.argv.includes('--multi-instance') || oaConfig.multiInstance === true)) {
|
if (!app.requestSingleInstanceLock() && !(process.argv.includes('--multi-instance') || oaConfig.multiInstance === true)) return app.quit();
|
||||||
log('Bootstrap', 'Non-first instance');
|
|
||||||
return app.quit();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (app.isReady()) {
|
if (app.isReady()) startUpdate();
|
||||||
startUpdate();
|
else app.once('ready', startUpdate);
|
||||||
} else {
|
|
||||||
app.once('ready', startUpdate);
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue