summaryrefslogtreecommitdiff
path: root/frontend/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/index.js')
-rw-r--r--frontend/index.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/frontend/index.js b/frontend/index.js
index a392eb8..7dc741e 100644
--- a/frontend/index.js
+++ b/frontend/index.js
@@ -3,6 +3,12 @@
if (Array.isArray(timers[1]) && timers[1].length > 0) {
window.location.href = './timer/';
} else {
- window.location.href = './status/';
+ const urlCookie = await cookieStore.get("last_used_url");
+
+ if (urlCookie) {
+ window.location.href = `./start/?machine_id=${urlCookie}`;
+ } else {
+ window.location.href = './status/'
+ }
}
})();