mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
discard wrong error notification(There is no newer version.)
This commit is contained in:
@@ -130,8 +130,8 @@ function checkUpdate () {
|
|||||||
}
|
}
|
||||||
updater.check((err, status) => {
|
updater.check((err, status) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
console.error(err)
|
var isLatest = err.message === 'There is no newer version.'
|
||||||
if (!versionNotified) notify('Updater error!', err.message)
|
if (!isLatest && !versionNotified) notify('Updater error!', err.message)
|
||||||
}
|
}
|
||||||
if (!err) {
|
if (!err) {
|
||||||
if (status) {
|
if (status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user