summaryrefslogtreecommitdiff
path: root/frontend/start.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/start.js')
-rw-r--r--frontend/start.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/start.js b/frontend/start.js
index 4c860e5..f79033d 100644
--- a/frontend/start.js
+++ b/frontend/start.js
@@ -1,6 +1,11 @@
document.getElementById("startbtn").addEventListener("click", () => {
start();
});
+
+const urlParams = new URLSearchParams(window.location.search);
+data.machine_id = urlParams.get('machine');
+console.log(urlParams);
+
startUpdateMachines();
const notbtn = document.getElementById("notbtn")