From 5a8dc2db9190e6d45eddb507243fd2c9b4867bb6 Mon Sep 17 00:00:00 2001 From: velzie Date: Thu, 17 Oct 2024 21:25:55 -0400 Subject: [PATCH] fix style proxy --- src/client/dom/css.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/dom/css.ts b/src/client/dom/css.ts index ebd10fe..8b58ba4 100644 --- a/src/client/dom/css.ts +++ b/src/client/dom/css.ts @@ -50,6 +50,8 @@ export default function (client: ScramjetClient) { return new Proxy(style, { get(t, p) { const v = Reflect.get(t, p); + if (p in CSSStyleDeclaration.prototype) return v; + if (typeof v === "function") { return new Proxy(v, { apply(target, thisArg, argArray) {