mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -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");
|
console.log("[EaglerML] Searching in iDB");
|
||||||
try {
|
try {
|
||||||
var idbMods = await getMods();
|
var idbMods = await getMods();
|
||||||
modsArr.concat(idbMods
|
modsArr = modsArr.concat(idbMods
|
||||||
.filter(x => { return x && x.length > 0 })
|
.filter(x => { return x && x.length > 0 })
|
||||||
.flatMap(x => { if (x.startsWith("web@")) { return x.replace("web@", "") } return x })
|
.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.");
|
console.log("[EaglerML] Loading " + currentMod + " via method B.");
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.src = currentMod;
|
script.src = currentMod;
|
||||||
script.setAttribute("data-mod", currentMod);
|
|
||||||
script.setAttribute("data-isMod", true);
|
script.setAttribute("data-isMod", true);
|
||||||
script.onerror = () => {
|
script.onerror = () => {
|
||||||
console.log(
|
console.log(
|
||||||
@ -174,7 +173,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
|||||||
methodB(currentMod);
|
methodB(currentMod);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
script.setAttribute("data-mod", currentMod);
|
|
||||||
script.setAttribute("data-isMod", true);
|
script.setAttribute("data-isMod", true);
|
||||||
script.onerror = () => {
|
script.onerror = () => {
|
||||||
console.log(
|
console.log(
|
||||||
|
@ -92,7 +92,7 @@ window.modLoader = async function modLoader(modsArr = []) {
|
|||||||
console.log("[EaglerML] Searching in iDB");
|
console.log("[EaglerML] Searching in iDB");
|
||||||
try {
|
try {
|
||||||
var idbMods = await getMods();
|
var idbMods = await getMods();
|
||||||
modsArr.concat(idbMods
|
modsArr = modsArr.concat(idbMods
|
||||||
.filter(x => { return x && x.length > 0 })
|
.filter(x => { return x && x.length > 0 })
|
||||||
.flatMap(x => { if (x.startsWith("web@")) { return x.replace("web@", "") } return x })
|
.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.");
|
console.log("[EaglerML] Loading " + currentMod + " via method B.");
|
||||||
var script = document.createElement("script");
|
var script = document.createElement("script");
|
||||||
script.src = currentMod;
|
script.src = currentMod;
|
||||||
script.setAttribute("data-mod", currentMod);
|
|
||||||
script.setAttribute("data-isMod", true);
|
script.setAttribute("data-isMod", true);
|
||||||
script.onerror = () => {
|
script.onerror = () => {
|
||||||
console.log(
|
console.log(
|
||||||
@ -175,7 +174,6 @@ window.modLoader = async function modLoader(modsArr = []) {
|
|||||||
methodB(currentMod);
|
methodB(currentMod);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
script.setAttribute("data-mod", currentMod);
|
|
||||||
script.setAttribute("data-isMod", true);
|
script.setAttribute("data-isMod", true);
|
||||||
script.onerror = () => {
|
script.onerror = () => {
|
||||||
console.log(
|
console.log(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user