the commit

This commit is contained in:
Avad3 2024-07-14 15:50:57 -04:00
parent 5afa089984
commit 09dca5eb1d

View file

@ -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);
},