From 1e290211ce4029db258d4fc14ef6c2fdbf92d342 Mon Sep 17 00:00:00 2001 From: mrvnklm <24477241+mrvnklm@users.noreply.github.com> Date: Wed, 20 May 2020 12:32:36 +0200 Subject: [PATCH] check for update on startup --- app.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 1c076cd..b29189f 100644 --- a/app.js +++ b/app.js @@ -32,13 +32,15 @@ const useAutoUpdater = () => { console.error(message) }); + autoUpdater.on('update-downloaded', () => { + autoUpdater.quitAndInstall(); + }); + setInterval(() => { autoUpdater.checkForUpdates(); }, 1000 * 60 * 30); - autoUpdater.on('update-downloaded', () => { - autoUpdater.quitAndInstall(); - }); + autoUpdater.checkForUpdates(); }; const checkAutoStart = () => {