diff options
| author | anderklander <anderklander@gmail.com> | 2017-11-14 18:50:21 +0100 |
|---|---|---|
| committer | Erik Larkö <erik@mullvad.net> | 2017-12-14 09:16:50 +0100 |
| commit | ed657f7892eb9263e15a0cf2ffb0caa60b32491c (patch) | |
| tree | 789a9dcdf150b7e5f9df098c2d1ae3a7680255ad /app/lib/platform.js | |
| parent | 7c3d84ac86a5a29cbb456dbdce2f7af9696021cf (diff) | |
| download | mullvadvpn-ed657f7892eb9263e15a0cf2ffb0caa60b32491c.tar.xz mullvadvpn-ed657f7892eb9263e15a0cf2ffb0caa60b32491c.zip | |
Links/exit in platform.js
moved separate small files to platform.js to handle platform specific tasks
Diffstat (limited to 'app/lib/platform.js')
| -rw-r--r-- | app/lib/platform.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/lib/platform.js b/app/lib/platform.js new file mode 100644 index 0000000000..868a24e588 --- /dev/null +++ b/app/lib/platform.js @@ -0,0 +1,13 @@ +// @flow +import { remote } from 'electron'; +import { shell } from 'electron'; + +const exit = () => { + remote.app.quit(); +}; + +const open = (link) => { + shell.openExternal(link); +}; + +export {exit, open};
\ No newline at end of file |
