Code error generated that appears false

I used the “disabled” check in builder:

I deleted all the (data folder, js, etc.), changed the code to “Both”:

and I’m back to an error in that code, which does not seem to be an actual error

and is pasted from working code here:
Is there a way to skip the dialog box when running online? - #4 by Luke

var checkOK = setInterval(function() { //Use basic nested setInterval for Status check of dialog
    console.log("Check if DialogBox loaded");
   if (document.getElementById("progressMsg")) { //Wait for ProgressMsg to exist
        console.log("Dialogbox exists."); //Dialog Box Ready
      var statusText = document.getElementById("progressMsg").innerHTML; //get Status of ProgressMsg
      if(statusText == "all resources downloaded.") //If status is good. Go and let JS Click the button
      {
      console.log("All resources were downloaded! Press Ok now...");
      document.getElementById("buttonOk").click(); // Click on the checkbox
      clearInterval(checkOK);
      }
   }
}, 500); // check every 500ms

I appreciate the attempts to help! It was running perfectly for a week, and clearly some tweak has caused havoc.