mirror of
https://github.com/Eugeny/tabby.git
synced 2025-09-24 17:16:03 +00:00
Bugfix for issue #534: Catch any errors occurring during checkForUpdates() to allow App to start up even if Squirrel is not available
This commit is contained in:
@@ -38,7 +38,12 @@ export class UpdaterService {
|
|||||||
})
|
})
|
||||||
|
|
||||||
this.logger.debug('Checking for updates')
|
this.logger.debug('Checking for updates')
|
||||||
|
|
||||||
|
try {
|
||||||
this.electron.autoUpdater.checkForUpdates()
|
this.electron.autoUpdater.checkForUpdates()
|
||||||
|
} catch (e) {
|
||||||
|
this.logger.info('Squirrel updater unavailable, falling back')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async check (): Promise<boolean> {
|
async check (): Promise<boolean> {
|
||||||
|
Reference in New Issue
Block a user