diff options
Diffstat (limited to 'src/web/app/desktop/scripts/notify.ts')
| -rw-r--r-- | src/web/app/desktop/scripts/notify.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/web/app/desktop/scripts/notify.ts b/src/web/app/desktop/scripts/notify.ts new file mode 100644 index 0000000000..2e6cbdeed8 --- /dev/null +++ b/src/web/app/desktop/scripts/notify.ts @@ -0,0 +1,8 @@ +import * as riot from 'riot'; + +export default message => { + const notification = document.body.appendChild(document.createElement('mk-ui-notification')); + (riot as any).mount(notification, { + message: message + }); +}; |