summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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();
}
});