diff --git a/src/bootstrap.js b/src/bootstrap.js index 259eaac..69ec615 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -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); }; \ No newline at end of file