I hate JS

This commit is contained in:
Christoph Stahl 2024-11-15 22:11:48 +01:00
parent 2dff2d047c
commit 23f9429762

View file

@ -16,7 +16,7 @@ const eta = computed(() =>{
let startTime = new Date(props.firstStartedAt * 1000) let startTime = new Date(props.firstStartedAt * 1000)
let playBackSeconds = (now - startTime) / 1000 let playBackSeconds = (now - startTime) / 1000
let etaSeconds = Math.round(props.offset - playBackSeconds) let etaSeconds = Math.round(props.offset - playBackSeconds)
if etaSeconds < 0 { if (etaSeconds < 0) {
etaSeconds = 0 etaSeconds = 0
} }