This commit is contained in:
slweeb 2022-01-20 15:26:07 -05:00
parent 86eeb0269a
commit 7bb6d6a847
1 changed files with 5 additions and 5 deletions

View File

@ -324,6 +324,11 @@
</script>
<script> // Mod Loader
runAfterLoadList = [];
// runAfterLoad() takes a function and adds it to the runAfterLoadList.
function runAfterLoad(func) {
runAfterLoadList.push(func);
}
// If the localStorage key "enabledMods" exists, load it as an array.
// If it doesn't exist, create an empty array.
enabledMods = localStorage.getItem("enabledMods") ? JSON.parse(localStorage.getItem("enabledMods")) : [];
@ -339,11 +344,6 @@
console.log(e);
}
}
runAfterLoadList = [];
// runAfterLoad() takes a function and adds it to the runAfterLoadList.
function runAfterLoad(func) {
runAfterLoadList.push(func);
}
</script>
<script>