biff_interval is snake case not camel case
authorArt Cancro <ajc@citadel.org>
Wed, 28 Dec 2022 22:07:46 +0000 (17:07 -0500)
committerArt Cancro <ajc@citadel.org>
Wed, 28 Dec 2022 22:07:46 +0000 (17:07 -0500)
webcit-ng/static/js/main.js

index 070f05ef759fc64ea9b52ec41c2ccd2048de3775..d40131e11b92046426ff8562601e3d2cd8367ce5 100644 (file)
@@ -25,7 +25,6 @@ do_biff = async() => {
 
 // This is called at the very beginning of the main page load.
 ctdl_startup = async() => {
-       var BiffInterval;
        response = await fetch("/ctdl/c/info");
 
        if (response.ok) {
@@ -45,14 +44,14 @@ ctdl_startup = async() => {
                        display_login_screen("");                                       // display the login modal.
                }
 
-               var BiffInterval;
-               try {                                                   // if this was already set up, clear it so there aren't multiple
-                       clearInterval(BiffInterval);
+               var biff_interval;
+               try {                                                                   // if this was already set up,
+                       clearInterval(biff_interval);                                   // clear the old one so there's only one.
                }
                catch {
                }
                do_biff();
-               BiffInterval = setInterval(do_biff, 10000);
+               biff_interval = setInterval(do_biff, 10000);
        }
        else {
                document.getElementById("ctdl-main").innerHTML =