瀏覽代碼

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

Loading…
取消
儲存