forked from rc/aircox
assets: track
This commit is contained in:
parent
a87b9c7e72
commit
12dcd94573
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user