implement #20 to some extent

This commit is contained in:
Mystikfluu 2022-07-23 01:17:07 +02:00
parent 1a3891c68c
commit 83d0512fbd

View File

@ -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);
}
}