misskey/src/client/app/desktop/api/notify.ts

10 lines
227 B
TypeScript
Raw Normal View History

2018-05-27 11:12:39 +02:00
import OS from '../../mios';
2018-02-20 18:53:34 +01:00
import Notification from '../views/components/ui-notification.vue';
2018-05-27 11:12:39 +02:00
export default (os: OS) => message => {
const vm = os.new(Notification, {
message
});
2018-02-20 18:53:34 +01:00
document.body.appendChild(vm.$el);
2018-05-27 11:12:39 +02:00
};