fuck my scramjet life

This commit is contained in:
velzie 2024-10-17 21:39:02 -04:00
parent 634634637d
commit fb614d403b
No known key found for this signature in database
GPG key ID: AA51AEFB0A1F3820

View file

@ -50,7 +50,6 @@ export default function (client: ScramjetClient) {
return new Proxy(style, { return new Proxy(style, {
get(t, p) { get(t, p) {
const v = Reflect.get(t, p); const v = Reflect.get(t, p);
if (p in CSSStyleDeclaration.prototype) return v;
if (typeof v === "function") { if (typeof v === "function") {
return new Proxy(v, { return new Proxy(v, {
@ -60,6 +59,8 @@ export default function (client: ScramjetClient) {
}); });
} }
if (p in CSSStyleDeclaration.prototype) return v;
return unrewriteCss(v); return unrewriteCss(v);
}, },
set(t, p, v) { set(t, p, v) {