1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix Android browser package

This commit is contained in:
xmflsct
2022-12-04 00:35:13 +01:00
parent d8bff02136
commit 9f76fa08a8
7 changed files with 49 additions and 20 deletions

View File

@ -1,4 +1,5 @@
import apiInstance from '@api/instance'
import browserPackage from '@helpers/browserPackage'
import navigationRef from '@helpers/navigationRef'
import { matchAccount, matchStatus } from '@helpers/urlMatcher'
import { store } from '@root/store'
@ -91,7 +92,8 @@ const openLink = async (url: string, navigation?: any) => {
case 'internal':
await WebBrowser.openBrowserAsync(encodeURI(url), {
dismissButtonStyle: 'close',
enableBarCollapsing: true
enableBarCollapsing: true,
browserPackage: await browserPackage()
})
break
case 'external':