rename encodeUrl to rewriteUrl

This commit is contained in:
velzie 2024-10-12 15:00:03 -04:00
parent 839b490c80
commit 3062db5df9
26 changed files with 78 additions and 75 deletions

View file

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