mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-07-13 19:57:47 +00:00
ref: Convert some files to TS (#11929)
This commit is contained in:
12
react/features/base/util/openURLInBrowser.web.ts
Normal file
12
react/features/base/util/openURLInBrowser.web.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Opens URL in the browser.
|
||||
*
|
||||
* @param {string} url - The URL to be opened.
|
||||
* @param {boolean} openInNewTab - If the link should be opened in a new tab.
|
||||
* @returns {void}
|
||||
*/
|
||||
export function openURLInBrowser(url: string, openInNewTab?: boolean) {
|
||||
const target = openInNewTab ? '_blank' : '';
|
||||
|
||||
window.open(url, target, 'noopener');
|
||||
}
|
||||
Reference in New Issue
Block a user