From 3a75c707af613089b41305fb03da6c41ed2c0771 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Fri, 16 Jan 2026 20:39:44 +0800 Subject: close notif aft interaction --- frontend/sw.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'frontend') 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(); } }); -- cgit v1.2.3