From 09dca5eb1dc556aa0523c9746ceb316bd9806e88 Mon Sep 17 00:00:00 2001 From: Avad3 <65318266+Avad3@users.noreply.github.com> Date: Sun, 14 Jul 2024 15:50:57 -0400 Subject: [PATCH] the commit --- src/client/url.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/url.ts b/src/client/url.ts index 19af4ef..46c1083 100644 --- a/src/client/url.ts +++ b/src/client/url.ts @@ -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); },