Sfoglia il codice sorgente

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 anni fa
parent
commit
62532b5879
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      index.html

+ 2
- 0
index.html Vedi File

@@ -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…
Annulla
Salva