assets: track

This commit is contained in:
bkfox 2022-05-21 19:17:26 +02:00
parent a87b9c7e72
commit 12dcd94573

View File

@ -38,7 +38,7 @@ export default class Live {
const now = new Date()
let item = data.find(it => it.start && (it.start <= now < it.end)) ||
data.length ? data[data.length-1] : null;
data.length ? data[0] : null;
if(item) {
item.src = this.src
this.current = new Model(item)