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:
paweldomas 2016-12-13 13:57:11 -06:00
parent 7e22f9c57b
commit 62532b5879
1 changed files with 2 additions and 0 deletions

View File

@ -58,6 +58,8 @@
}
var delay = Math.pow(2, retryCount) * 2000;
if (isNaN(delay) || delay < 2000 || delay > 60000)
delay = 10000;
document.body.innerHTML
= "<div style='"