diff options
| -rw-r--r-- | frontend/index.js | 2 | ||||
| -rw-r--r-- | frontend/start.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/frontend/index.js b/frontend/index.js index 7dc741e..e9de180 100644 --- a/frontend/index.js +++ b/frontend/index.js @@ -6,7 +6,7 @@ const urlCookie = await cookieStore.get("last_used_url"); if (urlCookie) { - window.location.href = `./start/?machine_id=${urlCookie}`; + window.location.href = `./start/?machine=${urlCookie}`; } else { window.location.href = './status/' } diff --git a/frontend/start.js b/frontend/start.js index 37af330..529c7a8 100644 --- a/frontend/start.js +++ b/frontend/start.js @@ -51,7 +51,7 @@ startbtn.addEventListener("click", () => { }); function rememberUrl() { - machineId = urlParams.get('machine_id'); + machineId = urlParams.get('machine'); minutesDelta = 5; expirationDate = new Date(new Date().getTime() + minutesDelta * 60000);; cookieStore.set({ |
