From ffc0b4831b8c03ef4a0409d3fac3dcf47addf77d Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 29 Mar 2013 16:43:07 +0100 Subject: [PATCH] Honor the `Check for Updates` config. --- src/config.coffee | 2 +- src/main.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.coffee b/src/config.coffee index 6bf9d3ec1..de0c6491f 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -11,7 +11,7 @@ Config = 'Comment Expansion': [true, 'Add buttons to expand too long comments.'] 'Thread Expansion': [true, 'Add buttons to expand threads.'] 'Index Navigation': [false, 'Add buttons to navigate between threads.'] - 'Check for Updates': [true, 'Check for updated versions of <%= meta.name %>.'] + 'Check for Updates': [true, 'Notify when updated versions of <%= meta.name %> are available.'] 'Filtering': 'Anonymize': [false, 'Make everyone Anonymous.'] 'Filter': [true, 'Self-moderation placebo.'] diff --git a/src/main.coffee b/src/main.coffee index 66ff56550..b1fdcb3a8 100644 --- a/src/main.coffee +++ b/src/main.coffee @@ -495,7 +495,7 @@ Main = Klass::callbacks.push obj.callback checkUpdate: -> - return unless Main.isThisPageLegit() + return unless Conf['Check for Updates'] and Main.isThisPageLegit() # Check for updates after: # - 6 hours since the last update on Opera because it lacks auto-updating. # - 7 days since the last update on Chrome/Firefox.