Try catch autoupdater errors

This commit is contained in:
Thomas Nordquist
2019-01-13 02:25:50 +01:00
parent ab87b13eed
commit 5cf5029530

View File

@@ -47,7 +47,11 @@ function createWindow () {
// Some APIs can only be used after this event occurs.
app.on('ready', () => {
createWindow()
try {
autoUpdater.checkForUpdatesAndNotify()
} catch (error) {
console.error(error)
}
})
// Quit when all windows are closed.