From 6e83421b38c8ca5d0b01f5117189a7765a88fd0f Mon Sep 17 00:00:00 2001 From: Artemy Date: Wed, 21 Jun 2023 15:57:25 +0300 Subject: [PATCH] fix: delete timeout of update --- src/main/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index d70e149..2291336 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -38,10 +38,8 @@ autoUpdater.on('download-progress', () => { }) autoUpdater.on('update-downloaded', () => { - console.log('Update downloaded; will install in 5 seconds') - setTimeout(function () { - autoUpdater.quitAndInstall() - }, 5000) + console.log('Update downloaded') + autoUpdater.quitAndInstall() }) function createWindow() {