Don't fail hard if status is not available
This commit is contained in:
parent
771da4528b
commit
619c750f3b
1 changed files with 4 additions and 0 deletions
|
@ -142,6 +142,10 @@ $(document).ready(function() {
|
|||
};
|
||||
|
||||
var refreshPlaybackStatus = function(status) {
|
||||
if (!status) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ('volume' in status) {
|
||||
$volumeElement.text(status.volume + '%');
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue