mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
rename encodeUrl to rewriteUrl
This commit is contained in:
parent
839b490c80
commit
3062db5df9
26 changed files with 78 additions and 75 deletions
|
@ -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);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue