mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
small patches
This commit is contained in:
parent
35a66cd847
commit
681d22f28c
@ -1,4 +1,4 @@
|
|||||||
globalThis.ModAPIVersion = "v2.7";
|
globalThis.ModAPIVersion = "v2.7.1";
|
||||||
globalThis.doEaglerforge = true;
|
globalThis.doEaglerforge = true;
|
||||||
document.querySelector("title").innerText = `EaglerForge Injector ${ModAPIVersion}`;
|
document.querySelector("title").innerText = `EaglerForge Injector ${ModAPIVersion}`;
|
||||||
document.querySelector("h1").innerText = `EaglerForge Injector ${ModAPIVersion}`;
|
document.querySelector("h1").innerText = `EaglerForge Injector ${ModAPIVersion}`;
|
||||||
|
@ -771,7 +771,7 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
if (!object) {
|
if (!object) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (prop in object) {
|
if ((prop in object) && Object.keys(object).includes(prop)) {
|
||||||
return prop;
|
return prop;
|
||||||
}
|
}
|
||||||
var possibleKeys = Object.keys(object).filter(x => { return x.startsWith(prop) });
|
var possibleKeys = Object.keys(object).filter(x => { return x.startsWith(prop) });
|
||||||
@ -780,7 +780,7 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
})
|
})
|
||||||
return possibleKeys.sort((a, b) => {
|
return possibleKeys.sort((a, b) => {
|
||||||
return a.length - b.length;
|
return a.length - b.length;
|
||||||
})[0] || null;
|
})[0] || prop;
|
||||||
}
|
}
|
||||||
|
|
||||||
ModAPI.util.modifyFunction = function (fn, patcherFn) {
|
ModAPI.util.modifyFunction = function (fn, patcherFn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user