scramjet / src /client /dom /fragments.ts
soiz1's picture
Upload 150 files
bee6636 verified
raw
history blame contribute delete
341 Bytes
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);
},
});
}