mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Don't proxy external accessible covers (#3120)
This commit is contained in:
parent
2f36304f06
commit
cd6250c495
@ -279,6 +279,14 @@ class HaMediaPlayerCard extends LocalizeMixin(EventsMixin(PolymerElement)) {
|
||||
}
|
||||
|
||||
// We have a new picture url
|
||||
// If entity picture is non-relative, we use that url directly.
|
||||
if (picture.substr(0, 1) !== "/") {
|
||||
this._coverShowing = true;
|
||||
this._coverLoadError = false;
|
||||
this.$.cover.style.backgroundImage = `url(${picture})`;
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const {
|
||||
content_type: contentType,
|
||||
|
Loading…
x
Reference in New Issue
Block a user