Files
jitsi-meet/react/features/base/util/openURLInBrowser.native.ts
Saúl Ibarra Corretgé edf5e1c094 fix(ts) fix mysterious linting errors
We have a rule that should apply here, but somehow it doesn't...
2022-11-02 09:03:14 +01:00

19 lines
471 B
TypeScript

/* eslint-disable @typescript-eslint/no-unused-vars */
import { Linking } from 'react-native';
import logger from './logger';
/**
* Opens URL in the browser.
*
* @param {string} url - The URL to be opened.
* @param {boolean} _ignore - Ignored.
* @returns {void}
*/
export function openURLInBrowser(url: string, _ignore?: boolean) {
Linking.openURL(url).catch(error => {
logger.error(`An error occurred while trying to open ${url}`, error);
});
}