summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2026-01-16 20:58:32 +0800
committeraltaf-creator <dev@altafcreator.com>2026-01-16 20:58:32 +0800
commit8171097196de089bbaa0859a6eff3b88e0ae16fa (patch)
treeba17e8329bb5a5f80c1388e3c9273ed183e964d1
parent168173b66be30b13cb2d82c4c83cf474fbe129bb (diff)
i'm kinda bum
-rw-r--r--frontend/sw.js4
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",