iceshrimp/src/web/app/desktop/scripts/notify.js

9 lines
209 B
JavaScript
Raw Normal View History

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