jitsi-meet-electron/app/features/utils/functions.js

25 lines
458 B
JavaScript

/* global process */
// @flow
import { shell } from 'electron';
/**
* Opens the provided link in default broswer.
*
* @param {string} link - Link to open outside the desktop app.
* @returns {void}
*/
export function openExternalLink(link: string) {
shell.openExternal(link);
}
/**
* Return true if Electron app is running on Mac system.
*
* @returns {boolean}
*/
export function isElectronMac() {
return process.platform === 'darwin';
}