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