scramjet/src/client/dom/performance.ts
2024-10-12 15:00:03 -04:00

10 lines
286 B
TypeScript

import { unrewriteUrl } from "../../shared";
import { ScramjetClient } from "../client";
export default function (client: ScramjetClient, self: typeof globalThis) {
client.Trap("PerformanceEntry.prototype.name", {
get(ctx) {
return unrewriteUrl(ctx.get() as string);
},
});
}