mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Fix 669
This commit is contained in:
@@ -73,18 +73,19 @@ const openLink = async (url: string, navigation?: any) => {
|
||||
}
|
||||
}
|
||||
|
||||
switch (getGlobalStorage.string('app.browser')) {
|
||||
// Some links might end with an empty space at the end that triggers an error
|
||||
switch (getGlobalStorage.string('app.browser')) {
|
||||
case 'external':
|
||||
await Linking.openURL(url.trim())
|
||||
break
|
||||
case 'internal':
|
||||
default:
|
||||
await WebBrowser.openBrowserAsync(url.trim(), {
|
||||
dismissButtonStyle: 'close',
|
||||
enableBarCollapsing: true,
|
||||
...(await browserPackage())
|
||||
})
|
||||
break
|
||||
case 'external':
|
||||
await Linking.openURL(url.trim())
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user