From c9a4662008dd055dfff39a764875cb5bfb0e6aa6 Mon Sep 17 00:00:00 2001 From: CanadaHonk Date: Wed, 11 Jan 2023 21:56:01 +0000 Subject: [PATCH] bootstrap: minor code cleanup --- src/bootstrap.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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