oops
This commit is contained in:
parent
86eeb0269a
commit
7bb6d6a847
10
index.html
10
index.html
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue