1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix clearing backdrop when no item is playing.

This commit is contained in:
Ian Walton 2020-08-26 18:35:20 -04:00
parent c22e3b2cc6
commit e7b5207294

View file

@ -228,7 +228,6 @@ function updateNowPlayingInfo(context, state, serverId) {
});
});
setImageUrl(context, state, url);
if (item) {
backdrop.setBackdrops([item]);
apiClient.getItem(apiClient.getCurrentUserId(), item.Id).then(function (fullItem) {
const userData = fullItem.UserData || {};
@ -240,7 +239,6 @@ function updateNowPlayingInfo(context, state, serverId) {
backdrop.clearBackdrop();
context.querySelector('.nowPlayingPageUserDataButtons').innerHTML = '';
}
}
}
function setImageUrl(context, state, url) {