diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-12-03 15:08:58 +0700 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-12-03 15:08:58 +0700 |
| commit | 2f946c233ee67e149b79c2878efeddbbb0dc1846 (patch) | |
| tree | 719ffc079275f9cff322c89bb08aa83826ceeb91 /frontend/main.js | |
| parent | 3979b8bcb35bc981355a83134ce7828dbfc7c0e3 (diff) | |
notif
Diffstat (limited to 'frontend/main.js')
| -rw-r--r-- | frontend/main.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/main.js b/frontend/main.js index 969614e..7ac8c08 100644 --- a/frontend/main.js +++ b/frontend/main.js @@ -1,7 +1,8 @@ // --- begin, important constants const data = { duration: 1, // will be multiplied by 30 - machine_id: "" + machine_id: "", + onesignal_subscription_id: "", } const API_URL = "https://backend.laundryweb.altafcreator.com" @@ -49,7 +50,7 @@ function decreaseTime() { } // --- starting a timer -function start() { +async function start() { fetch(`${API_URL}/start`, { credentials: "include", method: "POST", |
