icon of notification is added

This commit is contained in:
병준 박 2019-11-11 18:23:30 +09:00
parent 20ce90e1fa
commit e994e8d092

View File

@ -21,7 +21,10 @@ export class NotificationService {
}
notify(noti: NotificationRequest) {
const notification = new Notification(noti.title, { body: noti.contents });
const notification = new Notification(noti.title, {
body: noti.contents,
icon: noti.image || 'assets/images/img_nophoto_50.png'
});
notification.onclick = e => {
console.log('notification.onclick');
};