diff --git a/app/lib/methods/helpers/openLink.ts b/app/lib/methods/helpers/openLink.ts index 8ded0d5c0ca..04492889f8e 100644 --- a/app/lib/methods/helpers/openLink.ts +++ b/app/lib/methods/helpers/openLink.ts @@ -23,15 +23,15 @@ const appSchemeURL = (url: string, browser: string): string => { const { protocol } = parsedUrl; const isSecure = ['https:'].includes(protocol); - if (browser === 'googlechrome') { + if (browser === 'Chrome') { if (!isSecure) { schemeUrl = url.replace(protocol, scheme.chrome); } else { schemeUrl = url.replace(protocol, scheme.chromeSecure); } - } else if (browser === 'firefox') { + } else if (browser === 'Firefox') { schemeUrl = `${scheme.firefox}//open-url?url=${url}`; - } else if (browser === 'brave') { + } else if (browser === 'Brave') { schemeUrl = `${scheme.brave}//open-url?url=${url}`; } @@ -52,7 +52,7 @@ const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise url = ensureSecureProtocol(url); try { const browser = UserPreferences.getString(DEFAULT_BROWSER_KEY); - if (browser === 'inApp') { + if (browser === 'In_app') { await WebBrowser.openBrowserAsync(url, { toolbarColor: themes[theme].surfaceNeutral, controlsColor: themes[theme].fontSecondaryInfo, diff --git a/app/views/DefaultBrowserView/index.tsx b/app/views/DefaultBrowserView/index.tsx index d16ccb399aa..5273ccbf10a 100644 --- a/app/views/DefaultBrowserView/index.tsx +++ b/app/views/DefaultBrowserView/index.tsx @@ -92,7 +92,7 @@ const DefaultBrowserView = () => { isSelected={(!browser && item.value === 'systemDefault:') || item.title === browser} title={item.title} value={item.value} - translateTitle={false} + translateTitle={['In_app', 'System_default'].includes(item.title)} translateSubtitle={false} onPress={changeDefaultBrowser} testID={`default-browser-view-${item.value}`}