bootstrap: minor code cleanup

This commit is contained in:
Ducko 2023-01-11 21:56:01 +00:00
parent 6b6cabecf0
commit c9a4662008
1 changed files with 1 additions and 2 deletions

3
src/bootstrap.js vendored
View File

@ -132,6 +132,5 @@ module.exports = () => {
if (!app.requestSingleInstanceLock() && !(process.argv?.includes?.('--multi-instance') || oaConfig.multiInstance === true)) return app.quit();
if (app.isReady()) startUpdate();
else app.once('ready', startUpdate);
app.whenReady().then(startUpdate);
};