1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-23 02:58:18 +09:00
MisskeyIO/src/web/app/desktop/scripts/notify.ts
2017-11-13 18:05:35 +09:00

9 lines
218 B
TypeScript

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
});
};