mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Merge 273db3ac79
into 7d84185d0e
This commit is contained in:
commit
5dcebebf5a
1 changed files with 10 additions and 4 deletions
|
@ -37,8 +37,11 @@ class Backdrop {
|
|||
parent.appendChild(backdropImage);
|
||||
|
||||
if (!enableAnimation()) {
|
||||
if (existingBackdropImage?.parentNode) {
|
||||
existingBackdropImage.parentNode.removeChild(existingBackdropImage);
|
||||
if (existingBackdropImage) {
|
||||
const backdropContainer = getBackdropContainer();
|
||||
while (backdropContainer.childNodes.length > 1) {
|
||||
backdropContainer.removeChild(backdropContainer.firstChild);
|
||||
}
|
||||
}
|
||||
internalBackdrop(true);
|
||||
return;
|
||||
|
@ -51,8 +54,11 @@ class Backdrop {
|
|||
if (backdropImage === self.currentAnimatingElement) {
|
||||
self.currentAnimatingElement = null;
|
||||
}
|
||||
if (existingBackdropImage?.parentNode) {
|
||||
existingBackdropImage.parentNode.removeChild(existingBackdropImage);
|
||||
if (existingBackdropImage) {
|
||||
const backdropContainer = getBackdropContainer();
|
||||
while (backdropContainer.childNodes.length > 1) {
|
||||
backdropContainer.removeChild(backdropContainer.firstChild);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue