We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 706c125 commit 5a614cbCopy full SHA for 5a614cb
src/client/dom/fragments.ts
@@ -0,0 +1,10 @@
1
+import { rewriteHtml } from "../../shared/rewriters/html";
2
+import { ScramjetClient } from "../client";
3
+
4
+export default function (client: ScramjetClient, _self: Self) {
5
+ client.Proxy("Range.prototype.createContextualFragment", {
6
+ apply(ctx) {
7
+ ctx.args[0] = rewriteHtml(ctx.args[0], client.cookieStore, client.meta);
8
+ },
9
+ });
10
+}
0 commit comments