about summary refs log tree commit diff
path: root/src/lib/strings/url-helpers.ts
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2025-03-17 15:06:26 -0700
committerGitHub <noreply@github.com>2025-03-17 15:06:26 -0700
commitc612fca32a69ed5af769a7c5851598f35d14d1ee (patch)
tree64bd2b050441cc5701a7452bde6ded6bf3dc8267 /src/lib/strings/url-helpers.ts
parent4b7bda705e8428f99af14242ea68369e5bbe59b9 (diff)
downloadvoidsky-c612fca32a69ed5af769a7c5851598f35d14d1ee.tar.zst
remove .parse usage (#8016)
* remove .parse usage

* add one more usage
Diffstat (limited to 'src/lib/strings/url-helpers.ts')
-rw-r--r--src/lib/strings/url-helpers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/strings/url-helpers.ts b/src/lib/strings/url-helpers.ts
index df473b54e..20c3fabbc 100644
--- a/src/lib/strings/url-helpers.ts
+++ b/src/lib/strings/url-helpers.ts
@@ -323,7 +323,7 @@ export function createBskyAppAbsoluteUrl(path: string): string {
 export function createProxiedUrl(url: string): string {
   let u
   try {
-    u = URL.parse(url)
+    u = new URL(url)
   } catch {
     return url
   }