FontFace proxy

This commit is contained in:
velzie 2024-08-09 17:08:27 -04:00
parent f9dd137e5b
commit cbfd2a27ac
No known key found for this signature in database
GPG key ID: 048413F95F0DDE1F

View file

@ -0,0 +1,11 @@
import { ScramjetClient } from "../client";
import { decodeUrl, rewriteCss } from "../shared";
export default function (client: ScramjetClient, self: typeof window) {
client.Proxy("FontFace", {
construct(ctx) {
dbg.log("FontFace", ctx.args);
ctx.args[1] = rewriteCss(ctx.args[1]);
},
});
}