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:
parent
c22e3b2cc6
commit
e7b5207294
1 changed files with 10 additions and 12 deletions
|
@ -228,7 +228,6 @@ function updateNowPlayingInfo(context, state, serverId) {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
setImageUrl(context, state, url);
|
setImageUrl(context, state, url);
|
||||||
if (item) {
|
|
||||||
backdrop.setBackdrops([item]);
|
backdrop.setBackdrops([item]);
|
||||||
apiClient.getItem(apiClient.getCurrentUserId(), item.Id).then(function (fullItem) {
|
apiClient.getItem(apiClient.getCurrentUserId(), item.Id).then(function (fullItem) {
|
||||||
const userData = fullItem.UserData || {};
|
const userData = fullItem.UserData || {};
|
||||||
|
@ -240,7 +239,6 @@ function updateNowPlayingInfo(context, state, serverId) {
|
||||||
backdrop.clearBackdrop();
|
backdrop.clearBackdrop();
|
||||||
context.querySelector('.nowPlayingPageUserDataButtons').innerHTML = '';
|
context.querySelector('.nowPlayingPageUserDataButtons').innerHTML = '';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function setImageUrl(context, state, url) {
|
function setImageUrl(context, state, url) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue