Skip to content
This repository was archived by the owner on Jan 17, 2025. It is now read-only.

Commit 5c1a1be

Browse files
committed
added ?hidden flag to always show hidden mods
1 parent 6f2d935 commit 5c1a1be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/modframework.js

+7
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ function showHiddenMods() {
103103
for (const mod of hiddenMods) {
104104
mod.classList.remove("d-none");
105105
}
106+
log("Hidden mods shown. Please pay extra attention when using them.");
106107
}
107108

108109

@@ -119,6 +120,12 @@ function modLoader() {
119120
document.getElementById("modsContainer").appendChild(modDiv);
120121
});
121122
log("Patcher ready.");
123+
124+
// for development purposes, add ?hidden to the url to always show hidden mods
125+
if (window.location.href.indexOf("?hidden") > -1) {
126+
showHiddenMods();
127+
}
128+
122129
return modInstances; // Return the array of mod instances
123130
}
124131

0 commit comments

Comments
 (0)