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