mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-05-03 09:13:43 +02:00
20 lines
347 B
JavaScript
20 lines
347 B
JavaScript
/* global process */
|
|
|
|
// @flow
|
|
|
|
import { shell } from 'electron';
|
|
|
|
/**
|
|
* Opens the provided link in default broswer.
|
|
*/
|
|
export function openExternalLink(link: string) {
|
|
shell.openExternal(link);
|
|
}
|
|
|
|
/**
|
|
* Return true if Electron app is running on Mac system.
|
|
*/
|
|
export function isElectronMac() {
|
|
return process.platform === 'darwin';
|
|
}
|