zhzluke96 commited on
Commit
94466ce
1 Parent(s): 5333c16
Files changed (1) hide show
  1. modules/webui/js/index.js +4 -4
modules/webui/js/index.js CHANGED
@@ -154,10 +154,10 @@ addObserverIfDesiredNodeAvailable(".toast-wrap", function (added) {
154
  added.forEach(function (element) {
155
  if (element.innerText.includes("Connection errored out.")) {
156
  window.setTimeout(function () {
157
- document.getElementById("reset_button").classList.remove("hidden");
158
- document.getElementById("generate_button").classList.add("hidden");
159
- document.getElementById("skip_button").classList.add("hidden");
160
- document.getElementById("stop_button").classList.add("hidden");
161
  });
162
  }
163
  });
 
154
  added.forEach(function (element) {
155
  if (element.innerText.includes("Connection errored out.")) {
156
  window.setTimeout(function () {
157
+ document.getElementById("reset_button")?.classList.remove("hidden");
158
+ document.getElementById("generate_button")?.classList.add("hidden");
159
+ document.getElementById("skip_button")?.classList.add("hidden");
160
+ document.getElementById("stop_button")?.classList.add("hidden");
161
  });
162
  }
163
  });