summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-01-16 20:39:44 +0800
committeraltaf-creator <dev@altafcreator.com>2026-01-16 20:39:44 +0800
commit3a75c707af613089b41305fb03da6c41ed2c0771 (patch)
tree8d79c7eb4e8eab0f5c56c2e32653a81bf9ef79a1
parentc029292f58f7917d183f4bda4cb311db336e82a9 (diff)
close notif aft interaction
-rw-r--r--backend/__pycache__/notif.cpython-314.pycbin3607 -> 3576 bytes
-rw-r--r--frontend/sw.js2
2 files changed, 2 insertions, 0 deletions
diff --git a/backend/__pycache__/notif.cpython-314.pyc b/backend/__pycache__/notif.cpython-314.pyc
index d8ed6c1..e05be83 100644
--- a/backend/__pycache__/notif.cpython-314.pyc
+++ b/backend/__pycache__/notif.cpython-314.pyc
Binary files differ
diff --git a/frontend/sw.js b/frontend/sw.js
index bd38341..b9fa08d 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -36,7 +36,9 @@ self.addEventListener("notificationclick", (event) => {
body: JSON.stringify({id: timerId}),
});
clients.openWindow("/timer/");
+ event.notification.close();
} else {
clients.openWindow("/timer/");
+ event.notification.close();
}
});