Skip to content

Commit fbb1227

Browse files
committed
fix: updater
1 parent 2e7022b commit fbb1227

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
"babel-eslint": "^10.0.1",
7878
"babel-jest": "^23.6.0",
7979
"cross-env": "^7.0.2",
80-
"electron": "11.1.0",
80+
"electron": "11.4.1",
8181
"electron-devtools-installer": "^3.1.0",
8282
"electron-icon-builder": "^1.0.2",
8383
"electron-notarize": "^1.0.0",

src/background.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,14 @@ autoUpdater.on('update-downloaded', () => {
512512
if (win != null) {
513513
win.close()
514514
}
515-
autoUpdater.quitAndInstall()
515+
try {
516+
setImmediate(() => {
517+
autoUpdater.quitAndInstall()
518+
})
519+
}
520+
catch(err) {
521+
console.log(err)
522+
}
516523
})
517524

518525
// Overwrite wallet config file only when new version is downloaded

0 commit comments

Comments
 (0)