Make StandardSiteEmbed peekable (#10866)

This commit is contained in:
Samuel Newman
2026-06-11 23:49:09 +03:00
committed by GitHub
parent b281e23f11
commit f0e20d4c56
4 changed files with 129 additions and 120 deletions
+2 -2
View File
@@ -50,10 +50,10 @@ export function useGoogleTranslate() {
} catch (err) {
if (__DEV__) console.error(err)
// most likely means they don't have the translate app
await openLink(translateUrl)
openLink(translateUrl)
}
} else {
await openLink(translateUrl)
openLink(translateUrl)
}
},
[openLink],
+3 -3
View File
@@ -26,7 +26,7 @@ export function useOpenLink() {
const {inAppBrowserConsentControl} = useGlobalDialogsControlContext()
const openLink = useCallback(
async (url: string, override?: boolean, shouldProxy?: boolean) => {
(url: string, override?: boolean, shouldProxy?: boolean) => {
if (isBskyRSSUrl(url) && isRelativeUrl(url)) {
url = createBskyAppAbsoluteUrl(url)
}
@@ -66,12 +66,12 @@ export function useOpenLink() {
}).catch(err => {
if (__DEV__)
logger.error('Could not open web browser', {message: err})
Linking.openURL(url)
void Linking.openURL(url)
})
return
}
}
Linking.openURL(url)
void Linking.openURL(url)
},
[ax, enabled, inAppBrowserConsentControl, t, dialogContext],
)