minor tweak
This commit is contained in:
parent
05dca20e8d
commit
a5eaca0bcc
|
@ -44,9 +44,9 @@ const addProtocol = (url: string): string => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise<void> => {
|
const openLink = async (url: string, theme: TSupportedThemes = 'light'): Promise<void> => {
|
||||||
|
url = addProtocol(url);
|
||||||
try {
|
try {
|
||||||
const browser = UserPreferences.getString(DEFAULT_BROWSER_KEY);
|
const browser = UserPreferences.getString(DEFAULT_BROWSER_KEY);
|
||||||
url = addProtocol(url);
|
|
||||||
if (browser === 'inApp') {
|
if (browser === 'inApp') {
|
||||||
await WebBrowser.openBrowserAsync(url, {
|
await WebBrowser.openBrowserAsync(url, {
|
||||||
toolbarColor: themes[theme].headerBackground,
|
toolbarColor: themes[theme].headerBackground,
|
||||||
|
|
Loading…
Reference in New Issue