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

const log = electronLog;

const getAppVersion = () => {
  return remote.app.getVersion();
};

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

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

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

export { log, exit, openLink, openItem, getAppVersion };