import { rewriteUrl } from "../../shared/rewriters/url"; import { ScramjetClient } from "../client"; export default function (client: ScramjetClient, _self: Self) { client.Proxy("Navigator.prototype.sendBeacon", { apply(ctx) { ctx.args[0] = rewriteUrl(ctx.args[0], client.meta); }, }); }