chore: lint:fix

This commit is contained in:
wearrrrr 2024-10-10 19:31:35 -05:00
parent 4d7fa7abb6
commit e8a8a66397
5 changed files with 22 additions and 13 deletions

View file

@ -171,9 +171,10 @@ export default function (client: ScramjetClient, self: typeof window) {
// since the prototype chain is fucked
const style = ctx.get() as CSSStyleDeclaration;
return new Proxy(style, {
return new Proxy(style, {
get(t, p) {
let v = Reflect.get(t, p);
const v = Reflect.get(t, p);
if (typeof v === "function") {
return new Proxy(v, {
apply(target, thisArg, argArray) {
@ -189,7 +190,8 @@ export default function (client: ScramjetClient, self: typeof window) {
if (v == "" || typeof v !== "string") {
return Reflect.set(t, p, v);
}
return Reflect.set(t, p, rewriteCss(v, client.meta));
return Reflect.set(t, p, rewriteCss(v, client.meta));
},
});
},