feat(index.html): add safeguards to the reload delay value
If the page reload value is not within specific range it will be adjusted to a default of 10 seconds.
This commit is contained in:
parent
7e22f9c57b
commit
62532b5879
|
@ -58,6 +58,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
var delay = Math.pow(2, retryCount) * 2000;
|
var delay = Math.pow(2, retryCount) * 2000;
|
||||||
|
if (isNaN(delay) || delay < 2000 || delay > 60000)
|
||||||
|
delay = 10000;
|
||||||
|
|
||||||
document.body.innerHTML
|
document.body.innerHTML
|
||||||
= "<div style='"
|
= "<div style='"
|
||||||
|
|
Loading…
Reference in New Issue