mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
chore: lint:fix
This commit is contained in:
parent
4d7fa7abb6
commit
e8a8a66397
5 changed files with 22 additions and 13 deletions
|
@ -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));
|
||||
},
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue