diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-16 20:58:32 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-16 20:58:32 +0800 |
| commit | 8171097196de089bbaa0859a6eff3b88e0ae16fa (patch) | |
| tree | ba17e8329bb5a5f80c1388e3c9273ed183e964d1 /frontend | |
| parent | 168173b66be30b13cb2d82c4c83cf474fbe129bb (diff) | |
i'm kinda bum
Diffstat (limited to 'frontend')
| -rw-r--r-- | frontend/sw.js | 4 |
1 files changed, 3 insertions, 1 deletions
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", |
