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:
Lorenzo Alberto Maria Ambrosi 2018-11-26 15:53:55 +01:00
parent 1a158a919a
commit 6d0fea1983
No known key found for this signature in database
GPG Key ID: 0D424CCA84D4C9D4

View File

@ -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
}) })
} }