summaryrefslogtreecommitdiff
path: root/frontend/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/index.js')
-rw-r--r--frontend/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/index.js b/frontend/index.js
index 3141d50..12f1e97 100644
--- a/frontend/index.js
+++ b/frontend/index.js
@@ -4,10 +4,9 @@
window.location.href = './timer/';
} else {
const urlCookie = await cookieStore.get("last_used_url");
- alert(urlCookie)
- if (urlCookie) {
- window.location.href = `./start/?machine=${urlCookie}`;
+ if (urlCookie && urlCookie != null && urlCookie != "null") {
+ window.location.href = `./start/?machine=${urlCookie.value}`;
} else {
window.location.href = './status/'
}