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

10 lines
227 B
TypeScript
Raw Normal View History

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