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

discard wrong error notification(There is no newer version.)

This commit is contained in:
Rokt33r
2016-04-11 08:08:42 +09:00
parent a39f25961c
commit 627172f6df

View File

@@ -130,8 +130,8 @@ function checkUpdate () {
}
updater.check((err, status) => {
if (err) {
console.error(err)
if (!versionNotified) notify('Updater error!', err.message)
var isLatest = err.message === 'There is no newer version.'
if (!isLatest && !versionNotified) notify('Updater error!', err.message)
}
if (!err) {
if (status) {