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

Merge pull request #5139 from thornbill/item-details-backdrop-take-57

Refactor item details backdrop handling
This commit is contained in:
Bill Thornton 2024-01-22 00:22:49 -05:00 committed by GitHub
commit 62005df481
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 50 additions and 21 deletions

View file

@ -213,8 +213,8 @@ function enabled() {
let rotationInterval;
let currentRotatingImages = [];
let currentRotationIndex = -1;
export function setBackdrops(items, imageOptions, enableImageRotation) {
if (enabled()) {
export function setBackdrops(items, imageOptions, enableImageRotation, isEnabled = false) {
if (isEnabled || enabled()) {
const images = getImageUrls(items, imageOptions);
if (images.length) {