From 8171097196de089bbaa0859a6eff3b88e0ae16fa Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Fri, 16 Jan 2026 20:58:32 +0800 Subject: i'm kinda bum --- frontend/sw.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'frontend') diff --git a/frontend/sw.js b/frontend/sw.js index a1f4048..dd9a495 100644 --- a/frontend/sw.js +++ b/frontend/sw.js @@ -1,3 +1,5 @@ +const API_URL = "https://backend.laundryweb.altafcreator.com" + self.addEventListener('push', (e) => { console.log(e.data); const received_data = e.data.json(); @@ -27,7 +29,7 @@ self.addEventListener("notificationclick", (event) => { if (event.action === "collect") { console.log(event); timerId = event.notification.data.timerId; - console.log("finishing timer! w/ id "+timerId.toString()); + console.log("finishing timer! w/ id "+timerId); fetch(`${API_URL}/finish`, { method: "POST", credentials: "include", -- cgit v1.2.3