summaryrefslogtreecommitdiffhomepage
path: root/app/lib/platform.js
diff options
context:
space:
mode:
authoranderklander <anderklander@gmail.com>2017-11-14 18:50:21 +0100
committerErik Larkö <erik@mullvad.net>2017-12-14 09:16:50 +0100
commited657f7892eb9263e15a0cf2ffb0caa60b32491c (patch)
tree789a9dcdf150b7e5f9df098c2d1ae3a7680255ad /app/lib/platform.js
parent7c3d84ac86a5a29cbb456dbdce2f7af9696021cf (diff)
downloadmullvadvpn-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.js13
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