mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-25 18:26:35 +00:00
Fix playerObj undefined. Fixes #2915
This commit is contained in:
parent
2fda2ee742
commit
2389f92448
@ -317,6 +317,10 @@ class HaMediaPlayerCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
|||||||
computeBannerClasses(playerObj, coverShowing, coverLoadError) {
|
computeBannerClasses(playerObj, coverShowing, coverLoadError) {
|
||||||
var cls = "banner";
|
var cls = "banner";
|
||||||
|
|
||||||
|
if (!playerObj) {
|
||||||
|
return cls;
|
||||||
|
}
|
||||||
|
|
||||||
if (playerObj.isOff || playerObj.isIdle) {
|
if (playerObj.isOff || playerObj.isIdle) {
|
||||||
cls += " is-off no-cover";
|
cls += " is-off no-cover";
|
||||||
} else if (
|
} else if (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user