mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
the commit
This commit is contained in:
parent
5afa089984
commit
09dca5eb1d
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@ import { encodeUrl } from "../shared/rewriters/url";
|
|||
URL = new Proxy(URL, {
|
||||
construct(target, argArray, newTarget) {
|
||||
if (typeof argArray[0] === "string") argArray[0] = encodeUrl(argArray[0]);
|
||||
if (typeof argArray[1] === "string") argArray[1] = encodeUrl(argArray[1]);
|
||||
|
||||
return Reflect.construct(target, argArray, newTarget);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue