mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
10 lines
286 B
TypeScript
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);
|
|
},
|
|
});
|
|
}
|