diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-11 22:08:11 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-11 22:08:11 +0800 |
| commit | 5918e8e99b33e7853c83155551f7eb46b706e997 (patch) | |
| tree | 8421a9fa178e9f767aac2d3776f08e3b26220201 /frontend/index.js | |
| parent | 43ec4deea81d4ef84623c31df33b1c3cb037b0c2 (diff) | |
stupid
Diffstat (limited to 'frontend/index.js')
| -rw-r--r-- | frontend/index.js | 8 |
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/' + } } })(); |
