fix: attr proxy scramjet escapes

This commit is contained in:
Percs 2024-11-04 09:55:38 -06:00
parent e647545c37
commit 00dc1ab595

View file

@ -32,6 +32,15 @@ export default function (client: ScramjetClient, self: typeof window) {
});
}
if (
(typeof prop === "string" || typeof prop === "number") &&
!isNaN(Number(prop))
) {
const position = Object.keys(proxy)[prop];
return map[position];
}
if (!this.has(target, prop)) return undefined;
return value;