Tiny retry fix.

During network issues, switching to a tab with the timer
at more than 90 seconds would never update again.
This commit is contained in:
Nicolas Stepien 2012-07-06 00:22:01 +02:00
parent 78e8a386e3
commit c945bfb9ac
2 changed files with 2 additions and 2 deletions

View File

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

View File

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