From 5918e8e99b33e7853c83155551f7eb46b706e997 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 11 Jan 2026 22:08:11 +0800 Subject: stupid --- frontend/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'frontend/index.js') 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/' + } } })(); -- cgit v1.2.3