Skip to content

Commit dc4d4dc

Browse files
committed
allow direct access of property values on state
1 parent 92e59f4 commit dc4d4dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

OpenScript.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,8 @@ var OpenScript = {
18461846
return target.value[prop];
18471847
}
18481848

1849+
if(!target[prop] && typeof target.value === "object" && target.value[prop]) return target.value[prop];
1850+
18491851
return Reflect.get(...arguments);
18501852
}
18511853

0 commit comments

Comments
 (0)