summaryrefslogtreecommitdiff
path: root/frontend/sw.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/sw.js')
-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",