summaryrefslogtreecommitdiffhomepage
path: root/app/lib/platform.js
diff options
context:
space:
mode:
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