blob: f4f89b36c351f80fb8a591da2706e3eb6254ff8e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
(async () => {
const timers = await fetchTimers();
if (Array.isArray(timers[1]) && timers[1].length > 0) {
window.location.href = './timer/';
} else {
const urlCookie = await cookieStore.get("last_used_url");
if (urlCookie) {
window.location.href = `./start/?machine=${urlCookie.value}`;
} else {
window.location.href = './status/'
}
}
})();
|