Browse Source

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.
j8
paweldomas 8 years ago
parent
commit
62532b5879
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      index.html

+ 2
- 0
index.html View File

58
                     }
58
                     }
59
 
59
 
60
                     var delay = Math.pow(2, retryCount) * 2000;
60
                     var delay = Math.pow(2, retryCount) * 2000;
61
+                    if (isNaN(delay) || delay < 2000 || delay > 60000)
62
+                        delay = 10000;
61
 
63
 
62
                     document.body.innerHTML
64
                     document.body.innerHTML
63
                         = "<div style='"
65
                         = "<div style='"

Loading…
Cancel
Save