From cbfd2a27acd704d2d273e9f4fd66aa8b95ac0b4d Mon Sep 17 00:00:00 2001 From: velzie Date: Fri, 9 Aug 2024 17:08:27 -0400 Subject: [PATCH] FontFace proxy --- src/client/dom/fontface.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/client/dom/fontface.ts 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]); + }, + }); +}