cleanup/removed visiablity check from notification

This commit is contained in:
kapypara 2023-12-16 20:30:03 +03:00
parent 8d533d3f6a
commit 85a1bb76b5
1 changed files with 1 additions and 9 deletions

View File

@ -416,13 +416,7 @@ async function notify(count) {
return
}
const n = new Notification("Clone Wars", { body: `${count} new Post`})
document.addEventListener("visibilitychange", () => {
if (document.visibilityState == "visible") {
n.close()
}
})
new Notification("Clone Wars", { body: `${count} new Post`})
}
async function loadFresh() {
@ -495,8 +489,6 @@ if (!isQuery) {
let subtitle = `${points} points by ${author} ${date} ago`
console.log(comments)
if (comments !== undefined) {
subtitle += ` | ${comments} comments`
}