remove .parse usage

This commit is contained in:
Hailey
2025-03-17 15:00:11 -07:00
parent 36a7a8d8c6
commit 5568be4bc7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ export function createBskyAppAbsoluteUrl(path: string): string {
export function createProxiedUrl(url: string): string { export function createProxiedUrl(url: string): string {
let u let u
try { try {
u = URL.parse(url) u = new URL(url)
} catch { } catch {
return url return url
} }
+1 -1
View File
@@ -39,7 +39,7 @@ export function Component({
if (share) { if (share) {
shareUrl(href) shareUrl(href)
} else { } else {
openLink(href) openLink(href, false, true)
} }
} }