mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 07:01:20 -09:00
Fix bug
This commit is contained in:
parent
f514406422
commit
72ed7492c6
@ -602,6 +602,9 @@ globalThis.modapi_postinit = "(" + (() => {
|
|||||||
if (!object) {
|
if (!object) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
if (prop in object) {
|
||||||
|
return prop;
|
||||||
|
}
|
||||||
var possibleKeys = Object.keys(object).filter(x => { return x.startsWith(prop) });
|
var possibleKeys = Object.keys(object).filter(x => { return x.startsWith(prop) });
|
||||||
possibleKeys = possibleKeys.filter(x => {
|
possibleKeys = possibleKeys.filter(x => {
|
||||||
return Number.isFinite(parseInt(x.substring(prop.length))) || (x.substring(prop.length).length === 0);
|
return Number.isFinite(parseInt(x.substring(prop.length))) || (x.substring(prop.length).length === 0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user