summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
Diffstat (limited to 'frontend')
-rw-r--r--frontend/main.js1
-rw-r--r--frontend/permissionrequest.js2
2 files changed, 1 insertions, 2 deletions
diff --git a/frontend/main.js b/frontend/main.js
index b8803c0..23da453 100644
--- a/frontend/main.js
+++ b/frontend/main.js
@@ -2,7 +2,6 @@
const data = {
duration: 1, // will be multiplied by 30
machine_id: "",
- onesignal_subscription_id: "",
}
const API_URL = "https://backend.laundryweb.altafcreator.com"
diff --git a/frontend/permissionrequest.js b/frontend/permissionrequest.js
index f80c567..97258d9 100644
--- a/frontend/permissionrequest.js
+++ b/frontend/permissionrequest.js
@@ -1,7 +1,7 @@
const notif = document.getElementById("notif-panel");
const notbtn = document.getElementById("notbtn");
-console.log("notbtn")
+
notbtn.addEventListener("click", () => requestPermission())
async function requestPermission() {