icon of notification is added
This commit is contained in:
parent
20ce90e1fa
commit
e994e8d092
|
@ -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');
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user