blob: 7dc741e57ab78a6716d0b44d6792c5afd770e546 (
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_id=${urlCookie}`;
} else {
window.location.href = './status/'
}
}
})();
|