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

10 lines
227 B
TypeScript
Raw Normal View History

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