update elementsManager.js to the new dependency system

This commit is contained in:
ggodpl 2025-11-01 00:30:30 +01:00
parent 1e724fc3f2
commit 88b2f45ac7
1 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
if (enabledMods.includes("mods/betterMenuScreens.js")) { dependOn("betterMenuScreens.js", () => {
const properties = { const properties = {
meta: [ meta: [
{name: "name", type: "string", viewOnly: true, required: true}, {name: "name", type: "string", viewOnly: true, required: true},
@ -1209,8 +1209,4 @@ if (enabledMods.includes("mods/betterMenuScreens.js")) {
} }
runAfterLoadList.push(cssInject, loadChanges); runAfterLoadList.push(cssInject, loadChanges);
} else { }, true);
enabledMods.unshift("mods/betterMenuScreens.js");
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
window.location.reload();
}