bootstrap: minor code cleanup
This commit is contained in:
parent
6b6cabecf0
commit
c9a4662008
|
@ -132,6 +132,5 @@ module.exports = () => {
|
||||||
|
|
||||||
if (!app.requestSingleInstanceLock() && !(process.argv?.includes?.('--multi-instance') || oaConfig.multiInstance === true)) return app.quit();
|
if (!app.requestSingleInstanceLock() && !(process.argv?.includes?.('--multi-instance') || oaConfig.multiInstance === true)) return app.quit();
|
||||||
|
|
||||||
if (app.isReady()) startUpdate();
|
app.whenReady().then(startUpdate);
|
||||||
else app.once('ready', startUpdate);
|
|
||||||
};
|
};
|
Loading…
Reference in New Issue