mirror of
https://github.com/Eugeny/tabby.git
synced 2024-11-24 06:04:04 +03:00
handle auto-updater errors
This commit is contained in:
parent
bcb1b6a13b
commit
39fa0424a6
@ -35,6 +35,10 @@ export class UpdaterService {
|
|||||||
this.logger.info('No updates')
|
this.logger.info('No updates')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
electron.autoUpdater.once('error', err => {
|
||||||
|
this.logger.error(err)
|
||||||
|
})
|
||||||
|
|
||||||
this.downloaded = new Promise<boolean>(resolve => {
|
this.downloaded = new Promise<boolean>(resolve => {
|
||||||
electron.autoUpdater.once('update-downloaded', () => resolve(true))
|
electron.autoUpdater.once('update-downloaded', () => resolve(true))
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user