Make StandardSiteEmbed peekable (#10866)
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user