mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
trap PerformanceEntry.prototype.name because why not?
This commit is contained in:
parent
3aa5c1ef39
commit
9b4a85d5d1
1 changed files with 9 additions and 0 deletions
9
src/client/dom/performance.ts
Normal file
9
src/client/dom/performance.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { decodeUrl } from "../../shared";
|
||||
|
||||
export default function (client: ScramjetClient, self: typeof globalThis) {
|
||||
client.Trap("PerformanceEntry.prototype.name", {
|
||||
get(ctx) {
|
||||
return decodeUrl(ctx.get());
|
||||
},
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue