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) {
|
||||
|
||||
if (data.current === null) {
|
||||
if (data.currentShow != null) {
|
||||
//Master/show source have no current track but they do have a current show.
|
||||
if (data.currentShow != null && data.currentShow.length != 0) {
|
||||
// Master/show source have no current track but they do have a current show.
|
||||
$("p.now_playing").html(data.currentShow[0].name);
|
||||
} else {
|
||||
$("p.now_playing").html("Offline");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user