Compare commits

...

2 Commits

Author SHA1 Message Date
Hailey b685f02a65 add one more usage 2025-03-17 15:02:47 -07:00
Hailey 5568be4bc7 remove .parse usage 2025-03-17 15:00:11 -07:00
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
}
+2 -2
View File
@@ -24,13 +24,13 @@ export function Component({href}: {href: string}) {
const onUseIAB = React.useCallback(() => {
setInAppBrowser(true)
closeModal()
openLink(href, true)
openLink(href, true, true)
}, [closeModal, setInAppBrowser, href, openLink])
const onUseLinking = React.useCallback(() => {
setInAppBrowser(false)
closeModal()
openLink(href, false)
openLink(href, false, true)
}, [closeModal, setInAppBrowser, href, openLink])
return (
+1 -1
View File
@@ -39,7 +39,7 @@ export function Component({
if (share) {
shareUrl(href)
} else {
openLink(href)
openLink(href, false, true)
}
}