mirror of
https://github.com/ThaUnknown/miru.git
synced 2026-03-29 06:28:43 +00:00
fix: catch close error
This commit is contained in:
parent
0a6f446e2d
commit
d9236f9ffa
1 changed files with 4 additions and 2 deletions
|
|
@ -33,8 +33,10 @@ export default class Updater {
|
|||
install (forceRunAfter = false) {
|
||||
if (this.hasUpdate) {
|
||||
setImmediate(() => {
|
||||
this.window.close()
|
||||
this.torrentWindow.close()
|
||||
try {
|
||||
this.window.close()
|
||||
this.torrentWindow.close()
|
||||
} catch (e) {}
|
||||
autoUpdater.quitAndInstall(true, forceRunAfter)
|
||||
})
|
||||
if (process.platform === 'darwin') shell.openExternal('https://miru.watch/download')
|
||||
|
|
|
|||
Loading…
Reference in a new issue