From 85a1bb76b59d3dac612b6192c5b2edcabcd295ee Mon Sep 17 00:00:00 2001 From: kapypara Date: Sat, 16 Dec 2023 20:30:03 +0300 Subject: [PATCH] cleanup/removed visiablity check from notification --- static/index.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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` }