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

25 lines
458 B
JavaScript
Raw Normal View History

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