summaryrefslogtreecommitdiff
path: root/frontend/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/sw.js')
-rw-r--r--frontend/sw.js2
1 files changed, 2 insertions, 0 deletions
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();
}
});