summaryrefslogtreecommitdiff
path: root/src/web/app/desktop/api/notify.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-02-21 02:53:34 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-02-21 02:53:34 +0900
commita1e57841e71e442b1bf52e445e6c541f16ec066d (patch)
tree2b6862b8b47a68a98d0c1534d5dbe1ca356bea2d /src/web/app/desktop/api/notify.ts
parentwip (diff)
downloadmisskey-a1e57841e71e442b1bf52e445e6c541f16ec066d.tar.gz
misskey-a1e57841e71e442b1bf52e445e6c541f16ec066d.tar.bz2
misskey-a1e57841e71e442b1bf52e445e6c541f16ec066d.zip
wip
Diffstat (limited to 'src/web/app/desktop/api/notify.ts')
-rw-r--r--src/web/app/desktop/api/notify.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/web/app/desktop/api/notify.ts b/src/web/app/desktop/api/notify.ts
new file mode 100644
index 0000000000..1f89f40ce6
--- /dev/null
+++ b/src/web/app/desktop/api/notify.ts
@@ -0,0 +1,10 @@
+import Notification from '../views/components/ui-notification.vue';
+
+export default function(message) {
+ const vm = new Notification({
+ propsData: {
+ message
+ }
+ }).$mount();
+ document.body.appendChild(vm.$el);
+}