summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-01-16 20:53:39 +0800
committeraltaf-creator <dev@altafcreator.com>2026-01-16 20:53:39 +0800
commit11d6386023a3d9dcd0e1e1fcaaf9953859d443ee (patch)
tree6c92b47674c8ab2e1569e9bd97ef53635ddbfa1c /frontend
parentc3d14d6134a13736f5920aa5c0a43486a124491b (diff)
i'm a potato
Diffstat (limited to 'frontend')
-rw-r--r--frontend/sw.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/sw.js b/frontend/sw.js
index 416a2d0..fa6acdd 100644
--- a/frontend/sw.js
+++ b/frontend/sw.js
@@ -25,7 +25,7 @@ self.addEventListener('push', (e) => {
self.addEventListener("notificationclick", (event) => {
if (event.action === "collect") {
- timerId = event.data.timerId;
+ timerId = event.notification.data.timerId;
console.log("finishing timer! w/ id "+timerId.toString());
fetch(`${API_URL}/finish`, {
method: "POST",