File size: 341 Bytes
bee6636
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import { rewriteHtml } from "../../shared/rewriters/html";
import { ScramjetClient } from "../client";

export default function (client: ScramjetClient, _self: Self) {
	client.Proxy("Range.prototype.createContextualFragment", {
		apply(ctx) {
			ctx.args[0] = rewriteHtml(ctx.args[0], client.cookieStore, client.meta);
		},
	});
}