blob: 12f1e97a1b2645ec58a844154ba0f1e5be884998 (
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 && urlCookie != null && urlCookie != "null") {
window.location.href = `./start/?machine=${urlCookie.value}`;
} else {
window.location.href = './status/'
}
}
})();
|