Sfoglia il codice sorgente

Fix re-declaration of poll timer causing UX to fail

ArtyomV2X 1 mese fa
parent
commit
c6c1742f04
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      web/templates/index.html

+ 2 - 2
web/templates/index.html

@@ -732,7 +732,7 @@ function clearForm() {
 
 let lastAppliedVersion = -1;
 let lastServerInstance = null;
-let pollTimer          = null;
+// pollTimer is declared once in the State block near the top of this script.
 
 /**
  * Apply a server snapshot to the DOM, but only if it's strictly newer than
@@ -920,4 +920,4 @@ function cssEsc(s) {
 }
 </script>
 </body>
-</html>
+</html>