mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-17 16:10:02 -04:00
10 lines
273 B
TypeScript
10 lines
273 B
TypeScript
import { rewriteUrl } from "../../../shared";
|
|
import { ScramjetClient } from "../../client";
|
|
|
|
export default function (client: ScramjetClient, self) {
|
|
client.Proxy("navigator.sendBeacon", {
|
|
apply(ctx) {
|
|
ctx.args[0] = rewriteUrl(ctx.args[0], client.meta);
|
|
},
|
|
});
|
|
}
|