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:
parent
78e8a386e3
commit
c945bfb9ac
@ -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;
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user