diff --git a/postinit.js b/postinit.js index 4b904ab..bbad2d1 100644 --- a/postinit.js +++ b/postinit.js @@ -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);