summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/scripts/notify.js
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2017-02-18 17:40:07 +0900
committersyuilo <syuilotan@yahoo.co.jp>2017-02-18 17:40:07 +0900
commit7602f1672713df88d292ba28093d4ce516d4aeee (patch)
tree81ece05b97b04270f8242eae44a181a571b35355 /src/web/app/desktop/scripts/notify.js
parent:v: (diff)
downloadmisskey-7602f1672713df88d292ba28093d4ce516d4aeee.tar.gz
misskey-7602f1672713df88d292ba28093d4ce516d4aeee.tar.bz2
misskey-7602f1672713df88d292ba28093d4ce516d4aeee.zip
:v:
Diffstat (limited to 'src/web/app/desktop/scripts/notify.js')
-rw-r--r--src/web/app/desktop/scripts/notify.js8
1 files changed, 8 insertions, 0 deletions
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
+ });
+};