mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
FontFace proxy
This commit is contained in:
parent
f9dd137e5b
commit
cbfd2a27ac
1 changed files with 11 additions and 0 deletions
11
src/client/dom/fontface.ts
Normal file
11
src/client/dom/fontface.ts
Normal 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]);
|
||||||
|
},
|
||||||
|
});
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue