From 7602f1672713df88d292ba28093d4ce516d4aeee Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 18 Feb 2017 17:40:07 +0900 Subject: :v: --- src/web/app/desktop/scripts/notify.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/web/app/desktop/scripts/notify.js (limited to 'src/web/app/desktop/scripts/notify.js') diff --git a/src/web/app/desktop/scripts/notify.js b/src/web/app/desktop/scripts/notify.js new file mode 100644 index 0000000000..048f22aea7 --- /dev/null +++ b/src/web/app/desktop/scripts/notify.js @@ -0,0 +1,8 @@ +const riot = require('riot'); + +module.exports = message => { + const notification = document.body.appendChild(document.createElement('mk-ui-notification')); + riot.mount(notification, { + message: message + }); +}; -- cgit v1.3.1-freya