浏览代码

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 年前
父节点
当前提交
62532b5879
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2
    0
      index.html

+ 2
- 0
index.html 查看文件

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

正在加载...
取消
保存