1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-16 15:48:23 +09:00
cherrypick/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
});
};