1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

add errorHandler for autoUpdater

This commit is contained in:
Dick Choi
2016-10-17 06:56:02 +09:00
parent 99a0704516
commit 8997728cbc

View File

@@ -67,6 +67,10 @@ updater.on('update-downloaded', (info) => {
} }
}) })
updater.autoUpdater.on('error', (err) => {
console.log(err)
})
ipc.on('update-check', function (event, msg) { ipc.on('update-check', function (event, msg) {
if (isUpdateReady) { if (isUpdateReady) {
mainWindow.webContents.send('update-ready', 'Update available!') mainWindow.webContents.send('update-ready', 'Update available!')