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.
pull/1197/head
paweldomas 8 years ago
parent 7e22f9c57b
commit 62532b5879
  1. 2
      index.html

@ -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='"

Loading…
Cancel
Save