cleanup/removed visiablity check from notification
This commit is contained in:
parent
8d533d3f6a
commit
85a1bb76b5
|
@ -416,13 +416,7 @@ async function notify(count) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const n = new Notification("Clone Wars", { body: `${count} new Post`})
|
new Notification("Clone Wars", { body: `${count} new Post`})
|
||||||
|
|
||||||
document.addEventListener("visibilitychange", () => {
|
|
||||||
if (document.visibilityState == "visible") {
|
|
||||||
n.close()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async function loadFresh() {
|
async function loadFresh() {
|
||||||
|
@ -495,8 +489,6 @@ if (!isQuery) {
|
||||||
|
|
||||||
let subtitle = `${points} points by ${author} ${date} ago`
|
let subtitle = `${points} points by ${author} ${date} ago`
|
||||||
|
|
||||||
console.log(comments)
|
|
||||||
|
|
||||||
if (comments !== undefined) {
|
if (comments !== undefined) {
|
||||||
subtitle += ` | ${comments} comments`
|
subtitle += ` | ${comments} comments`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue