blob: 3141d501004112da2cb0332e8603d7600ebd7ef6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
(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");
alert(urlCookie)
if (urlCookie) {
window.location.href = `./start/?machine=${urlCookie}`;
} else {
window.location.href = './status/'
}
}
})();
|