Update '12/liveplayer.js'

master
murtaugh 5 years ago
parent 4b8a66b60f
commit cce1d25816

@ -10,13 +10,13 @@ function liveplayer (elt) {
if (d.time && d.time != last_timestamp) { if (d.time && d.time != last_timestamp) {
last_timestamp = d.time; last_timestamp = d.time;
console.log("CURRENT METADATA", d); console.log("CURRENT METADATA", d);
var old_nowplaying = elt.querySelector(".nowplaying"); var old_nowplaying = elt.querySelector(".now_playing");
if (old_nowplaying) { if (old_nowplaying) {
old_nowplaying.classList.remove("nowplaying"); old_nowplaying.classList.remove("now_playing");
} }
var nowplaying = elt.querySelector(d.title); var nowplaying = elt.querySelector(d.title);
if (nowplaying) { if (nowplaying) {
nowplaying.classList.add("nowplaying"); nowplaying.classList.add("now_playing");
} }
} }

Loading…
Cancel
Save