mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 23:30:00 -04:00
fix style proxy
This commit is contained in:
parent
47cdbda5bf
commit
5a8dc2db91
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue