summaryrefslogtreecommitdiffhomepage
path: root/app/lib/platform.js
blob: 89caff591c1c1442be1c89f4bc1a95cfb31898b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// @flow
import { remote } from 'electron';
import { shell } from 'electron';
import electronLog from 'electron-log';

const log = electronLog;

const exit = () => {
  remote.app.quit();
};

const openLink = (link: string) => {
  shell.openExternal(link);
};

const openItem = (path: string) => {
  shell.openItem(path);
};

export { log, exit, openLink, openItem };