This commit is contained in:
ZXMushroom63 2024-09-21 11:42:09 +08:00
parent 841e056606
commit 45283aa769
2 changed files with 4 additions and 3 deletions

View File

@ -177,13 +177,14 @@ globalThis.modapi_guikit = `// ModAPI GUI made by TheIdiotPlays
document.querySelector("#modapi_gui_container").remove();
}
document.querySelector("#modapi_gui_container")._cb = cb;
var element = document.createElement("div");
element.innerHTML = gui.replace("{splash_msg}", splashes[Math.floor(Math.random() * splashes.length)]);
document.body.appendChild(element);
document.querySelector("#modapi_gui_container")._cb = cb;
var modsList = await getMods();
var tbody = document.querySelector("#modapi_gui_container .modTable tbody");
tbody.innerHTML = "";

View File

@ -176,8 +176,6 @@
cb ||= document.querySelector("#modapi_gui_container")._cb;
document.querySelector("#modapi_gui_container").remove();
}
document.querySelector("#modapi_gui_container")._cb = cb;
var element = document.createElement("div");
@ -185,6 +183,8 @@
document.body.appendChild(element);
document.querySelector("#modapi_gui_container")._cb = cb;
var modsList = await getMods();
var tbody = document.querySelector("#modapi_gui_container .modTable tbody");
tbody.innerHTML = "";