fix inserter bug
This commit is contained in:
parent
0bb34b80f1
commit
5083a7f407
|
|
@ -14,8 +14,8 @@ var colorOffsetMod = "mods/maxColorOffset.js";
|
||||||
|
|
||||||
if(!enabledMods.includes(libraryMod)) {
|
if(!enabledMods.includes(libraryMod)) {
|
||||||
enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod);
|
enabledMods.splice(enabledMods.indexOf(modName),0,libraryMod);
|
||||||
|
enabledMods.splice(enabledMods.indexOf(modName),0,colorOffsetMod);
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
localStorage.setItem("enabledMods", JSON.stringify(enabledMods));
|
||||||
localStorage.setItem("enabledMods", JSON.stringify(colorOffsetMod));
|
|
||||||
alert(`The ${libraryMod} and ${colorOffsetMod} mods are required and have been automatically inserted (reload for this to take effect).`);
|
alert(`The ${libraryMod} and ${colorOffsetMod} mods are required and have been automatically inserted (reload for this to take effect).`);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue