Honor the Check for Updates config.

This commit is contained in:
Nicolas Stepien 2013-03-29 16:43:07 +01:00
parent 4ef7c875a7
commit ffc0b4831b
2 changed files with 2 additions and 2 deletions

View File

@ -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.']

View File

@ -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.