From c945bfb9ac9cef953d39554af4af115d4ff679f1 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 6 Jul 2012 00:22:01 +0200 Subject: [PATCH] Tiny retry fix. During network issues, switching to a tab with the timer at more than 90 seconds would never update again. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 3f9626920..636e63b06 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3004,7 +3004,7 @@ n = 1 + Number(Updater.timer.textContent); if (n === 0) { return Updater.update(); - } else if (n === Updater.getInterval()) { + } else if (n >= Updater.getInterval()) { Updater.unsuccessfulFetchCount++; Updater.count.textContent = 'Retry'; Updater.count.className = null; diff --git a/script.coffee b/script.coffee index a9556d2d3..2916b4ffb 100644 --- a/script.coffee +++ b/script.coffee @@ -2416,7 +2416,7 @@ Updater = if n is 0 Updater.update() - else if n is Updater.getInterval() + else if n >= Updater.getInterval() Updater.unsuccessfulFetchCount++ Updater.count.textContent = 'Retry' Updater.count.className = null