implement #20 to some extent
This commit is contained in:
parent
1a3891c68c
commit
83d0512fbd
@ -240,8 +240,11 @@ async function mainNoti(user) {
|
||||
await askNotiPerms()
|
||||
} else {
|
||||
if(cansendNoti) {
|
||||
let notification = new Notification('IPost', { body: "new message posted from " + user });
|
||||
let notification = new Notification('IPost', { body: "new message posted from " + user , tag: "new_post"});
|
||||
notification = await notification
|
||||
notification.addEventListener("click",function(){
|
||||
notification.close()
|
||||
})
|
||||
console.log(notification);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user