feat(webui): initial websocket integration to be more responsive #2221
@ -1835,11 +1835,7 @@ single.getRoute("/webui/cheats").on("beforeload", function () {
|
||||
var x = document.getElementById(`${key}`);
|
||||
if (x != null) {
|
||||
if (x.type == "checkbox") {
|
||||
if (value === true) {
|
||||
x.setAttribute("checked", "checked");
|
||||
} else {
|
||||
x.removeAttribute("checked");
|
||||
}
|
||||
x.checked = value;
|
||||
} else if (x.type == "number") {
|
||||
x.setAttribute("value", `${value}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user