diff --git a/src/client/dom/fontface.ts b/src/client/dom/fontface.ts new file mode 100644 index 0000000..a47e432 --- /dev/null +++ b/src/client/dom/fontface.ts @@ -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]); + }, + }); +}