Fixed player displaying nothing (instead of Offline) when no show is scheduled
This commit is contained in:
parent
e78bd82c8c
commit
272bb11fcf
|
@ -252,8 +252,8 @@
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
|
|
||||||
if (data.current === null) {
|
if (data.current === null) {
|
||||||
if (data.currentShow != null) {
|
if (data.currentShow != null && data.currentShow.length != 0) {
|
||||||
//Master/show source have no current track but they do have a current show.
|
// Master/show source have no current track but they do have a current show.
|
||||||
$("p.now_playing").html(data.currentShow[0].name);
|
$("p.now_playing").html(data.currentShow[0].name);
|
||||||
} else {
|
} else {
|
||||||
$("p.now_playing").html("Offline");
|
$("p.now_playing").html("Offline");
|
||||||
|
|
Loading…
Reference in New Issue