Sharkey/src/client/app/desktop/api/notify.ts
2018-03-29 20:32:18 +09:00

10 lines
217 B
TypeScript

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