summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts/notify.ls
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/app/desktop/scripts/notify.ls')
-rw-r--r--src/web/app/desktop/scripts/notify.ls6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/web/app/desktop/scripts/notify.ls b/src/web/app/desktop/scripts/notify.ls
new file mode 100644
index 0000000000..919bbc3dcf
--- /dev/null
+++ b/src/web/app/desktop/scripts/notify.ls
@@ -0,0 +1,6 @@
+riot = require \riot
+
+module.exports = (message) ~>
+ notification = document.body.append-child document.create-element \mk-ui-notification
+ riot.mount notification, do
+ message: message