scramjet / src /client /dom /performance.ts
soiz1's picture
Upload 150 files
bee6636 verified
raw
history blame contribute delete
298 Bytes
import { unrewriteUrl } from "../../shared/rewriters/url";
import { ScramjetClient } from "../client";
export default function (client: ScramjetClient, _self: Self) {
client.Trap("PerformanceEntry.prototype.name", {
get(ctx) {
return unrewriteUrl(ctx.get() as string);
},
});
}