mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-02 11:44:01 +03:00
handle squirrel errors in updater
This commit is contained in:
parent
5c22e22caa
commit
76ffef751c
@ -84,7 +84,12 @@ export class UpdaterService {
|
|||||||
this.electron.autoUpdater.on('error', onError)
|
this.electron.autoUpdater.on('error', onError)
|
||||||
this.electron.autoUpdater.on('update-not-available', onNoUpdate)
|
this.electron.autoUpdater.on('update-not-available', onNoUpdate)
|
||||||
this.electron.autoUpdater.on('update-available', onUpdate)
|
this.electron.autoUpdater.on('update-available', onUpdate)
|
||||||
this.electron.autoUpdater.checkForUpdates()
|
try {
|
||||||
|
this.electron.autoUpdater.checkForUpdates()
|
||||||
|
} catch (e) {
|
||||||
|
this.electronUpdaterAvailable = false
|
||||||
|
this.logger.info('Electron updater unavailable, falling back', e)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
this.electron.autoUpdater.on('update-available', () => {
|
this.electron.autoUpdater.on('update-available', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user