diff options
Diffstat (limited to 'frontend/index.js')
| -rw-r--r-- | frontend/index.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/frontend/index.js b/frontend/index.js new file mode 100644 index 0000000..a392eb8 --- /dev/null +++ b/frontend/index.js @@ -0,0 +1,8 @@ +(async () => { + const timers = await fetchTimers(); + if (Array.isArray(timers[1]) && timers[1].length > 0) { + window.location.href = './timer/'; + } else { + window.location.href = './status/'; + } +})(); |
