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

11 lines
217 B
TypeScript
Raw Normal View History

2018-02-20 17:53:34 +00:00
import Notification from '../views/components/ui-notification.vue';
export default function(message) {
const vm = new Notification({
propsData: {
message
}
}).$mount();
document.body.appendChild(vm.$el);
}