snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
16
react/features/base/util/openURLInBrowser.native.ts
Normal file
16
react/features/base/util/openURLInBrowser.native.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user