mirror of
https://github.com/MisskeyIO/misskey
synced 2024-12-23 02:58:18 +09:00
9 lines
218 B
TypeScript
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
|
|
});
|
|
};
|