diff --git a/static/index.js b/static/index.js index 267010d..215d20a 100644 --- a/static/index.js +++ b/static/index.js @@ -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` }