diff options
| -rw-r--r-- | backend/__pycache__/notif.cpython-314.pyc | bin | 3607 -> 3576 bytes | |||
| -rw-r--r-- | frontend/sw.js | 2 |
2 files changed, 2 insertions, 0 deletions
diff --git a/backend/__pycache__/notif.cpython-314.pyc b/backend/__pycache__/notif.cpython-314.pyc Binary files differindex d8ed6c1..e05be83 100644 --- a/backend/__pycache__/notif.cpython-314.pyc +++ b/backend/__pycache__/notif.cpython-314.pyc 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(); } }); |
