jormungandr-bite/src/web/app/desktop/scripts/notify.ts

9 lines
218 B
TypeScript
Raw Normal View History

2017-03-18 05:05:11 -06:00
import * as riot from 'riot';
2017-02-18 01:40:07 -07:00
2017-03-18 05:05:11 -06:00
export default message => {
2017-02-18 01:40:07 -07:00
const notification = document.body.appendChild(document.createElement('mk-ui-notification'));
2017-11-13 02:05:35 -07:00
(riot as any).mount(notification, {
2017-02-18 01:40:07 -07:00
message: message
});
};