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);
|
n = 1 + Number(Updater.timer.textContent);
|
||||||
if (n === 0) {
|
if (n === 0) {
|
||||||
return Updater.update();
|
return Updater.update();
|
||||||
} else if (n === Updater.getInterval()) {
|
} else if (n >= Updater.getInterval()) {
|
||||||
Updater.unsuccessfulFetchCount++;
|
Updater.unsuccessfulFetchCount++;
|
||||||
Updater.count.textContent = 'Retry';
|
Updater.count.textContent = 'Retry';
|
||||||
Updater.count.className = null;
|
Updater.count.className = null;
|
||||||
|
|||||||
@ -2416,7 +2416,7 @@ Updater =
|
|||||||
|
|
||||||
if n is 0
|
if n is 0
|
||||||
Updater.update()
|
Updater.update()
|
||||||
else if n is Updater.getInterval()
|
else if n >= Updater.getInterval()
|
||||||
Updater.unsuccessfulFetchCount++
|
Updater.unsuccessfulFetchCount++
|
||||||
Updater.count.textContent = 'Retry'
|
Updater.count.textContent = 'Retry'
|
||||||
Updater.count.className = null
|
Updater.count.className = null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user