Просмотр исходного кода

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 лет назад
Родитель
Сommit
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='"

Загрузка…
Отмена
Сохранить