remove .parse usage
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ export function Component({
|
||||
if (share) {
|
||||
shareUrl(href)
|
||||
} else {
|
||||
openLink(href)
|
||||
openLink(href, false, true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user