From 6d0fea19835ef20d14c80f809782e46ed0160e98 Mon Sep 17 00:00:00 2001 From: Lorenzo Alberto Maria Ambrosi Date: Mon, 26 Nov 2018 15:53:55 +0100 Subject: [PATCH] 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 --- lib/gui/app/components/update-notifier.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gui/app/components/update-notifier.js b/lib/gui/app/components/update-notifier.js index 3a2d00c1..4911818a 100644 --- a/lib/gui/app/components/update-notifier.js +++ b/lib/gui/app/components/update-notifier.js @@ -79,7 +79,7 @@ exports.shouldCheckForUpdates = (options) => { 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)) { _.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 }) }