mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -09:00
remove data-mod, to save ram
This commit is contained in:
parent
f6c40df9d1
commit
66542d3130
@ -91,7 +91,7 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
console.log("[EaglerML] Searching in iDB");
|
||||
try {
|
||||
var idbMods = await getMods();
|
||||
modsArr.concat(idbMods
|
||||
modsArr = modsArr.concat(idbMods
|
||||
.filter(x => { return x && x.length > 0 })
|
||||
.flatMap(x => { if (x.startsWith("web@")) { return x.replace("web@", "") } return x })
|
||||
);
|
||||
@ -132,7 +132,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
console.log("[EaglerML] Loading " + currentMod + " via method B.");
|
||||
var script = document.createElement("script");
|
||||
script.src = currentMod;
|
||||
script.setAttribute("data-mod", currentMod);
|
||||
script.setAttribute("data-isMod", true);
|
||||
script.onerror = () => {
|
||||
console.log(
|
||||
@ -174,7 +173,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
methodB(currentMod);
|
||||
return;
|
||||
}
|
||||
script.setAttribute("data-mod", currentMod);
|
||||
script.setAttribute("data-isMod", true);
|
||||
script.onerror = () => {
|
||||
console.log(
|
||||
|
@ -92,7 +92,7 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
console.log("[EaglerML] Searching in iDB");
|
||||
try {
|
||||
var idbMods = await getMods();
|
||||
modsArr.concat(idbMods
|
||||
modsArr = modsArr.concat(idbMods
|
||||
.filter(x => { return x && x.length > 0 })
|
||||
.flatMap(x => { if (x.startsWith("web@")) { return x.replace("web@", "") } return x })
|
||||
);
|
||||
@ -133,7 +133,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
console.log("[EaglerML] Loading " + currentMod + " via method B.");
|
||||
var script = document.createElement("script");
|
||||
script.src = currentMod;
|
||||
script.setAttribute("data-mod", currentMod);
|
||||
script.setAttribute("data-isMod", true);
|
||||
script.onerror = () => {
|
||||
console.log(
|
||||
@ -175,7 +174,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
||||
methodB(currentMod);
|
||||
return;
|
||||
}
|
||||
script.setAttribute("data-mod", currentMod);
|
||||
script.setAttribute("data-isMod", true);
|
||||
script.onerror = () => {
|
||||
console.log(
|
||||
|
Loading…
x
Reference in New Issue
Block a user