Don't fail hard if status is not available

This commit is contained in:
Fabio Manganiello 2019-03-03 12:42:31 +01:00
parent 771da4528b
commit 619c750f3b

View file

@ -142,6 +142,10 @@ $(document).ready(function() {
};
var refreshPlaybackStatus = function(status) {
if (!status) {
return;
}
if ('volume' in status) {
$volumeElement.text(status.volume + '%');
}