mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 08:16:36 +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) {
|
||||
var cls = "banner";
|
||||
|
||||
if (!playerObj) {
|
||||
return cls;
|
||||
}
|
||||
|
||||
if (playerObj.isOff || playerObj.isIdle) {
|
||||
cls += " is-off no-cover";
|
||||
} else if (
|
||||
|
Loading…
x
Reference in New Issue
Block a user