summaryrefslogtreecommitdiffhomepage
path: root/app/lib/platform.js
blob: 2b078b8bb61b6c194b9fd58db6d5b9af720b568d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// @flow
import { remote, 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 };