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:
@@ -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!')
|
||||||
|
|||||||
Reference in New Issue
Block a user