From a5eaca0bcc73f4a9f892ac2d4cfbac7af9cd8e0e Mon Sep 17 00:00:00 2001 From: Reinaldo Neto Date: Wed, 8 Feb 2023 20:11:30 -0300 Subject: [PATCH] minor tweak --- app/lib/methods/helpers/openLink.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/methods/helpers/openLink.ts b/app/lib/methods/helpers/openLink.ts index 156a360c7..217c54d72 100644 --- a/app/lib/methods/helpers/openLink.ts +++ b/app/lib/methods/helpers/openLink.ts @@ -44,9 +44,9 @@ const addProtocol = (url: string): string => { }; const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise => { + url = addProtocol(url); try { const browser = UserPreferences.getString(DEFAULT_BROWSER_KEY); - url = addProtocol(url); if (browser === 'inApp') { await WebBrowser.openBrowserAsync(url, { toolbarColor: themes[theme].headerBackground,