cleanup/removed visiablity check from notification
This commit is contained in:
parent
8d533d3f6a
commit
85a1bb76b5
|
@ -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`
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue