mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-19 17:26:34 +00:00
fix(GUI): Fix update notification error
Remove "this" and use "exports" instead Change-type: patch Changelog-entry: Fix update notifier error popping up on v1.4.1->1.4.8 Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
This commit is contained in:
parent
1a158a919a
commit
6d0fea1983
@ -79,7 +79,7 @@ exports.shouldCheckForUpdates = (options) => {
|
|||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(this.UPDATE_NOTIFIER_SLEEP_DAYS)
|
return Date.now() - options.lastSleptUpdateNotifier > units.daysToMilliseconds(exports.UPDATE_NOTIFIER_SLEEP_DAYS)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -117,7 +117,7 @@ exports.notify = (version, options = {}) => {
|
|||||||
|
|
||||||
if (_.get(options, [ 'allowSleepUpdateCheck' ], true)) {
|
if (_.get(options, [ 'allowSleepUpdateCheck' ], true)) {
|
||||||
_.merge(dialogOptions, {
|
_.merge(dialogOptions, {
|
||||||
checkboxLabel: `Remind me again in ${this.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
|
checkboxLabel: `Remind me again in ${exports.UPDATE_NOTIFIER_SLEEP_DAYS} days`,
|
||||||
checkboxChecked: false
|
checkboxChecked: false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user