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, 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",