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

Implement suggestions

This commit is contained in:
MrTimscampi 2020-04-25 20:23:51 +02:00
parent 4c3092f857
commit 7860deac23
2 changed files with 7 additions and 14 deletions

View file

@ -4,10 +4,6 @@ import 'css!./style';
/* eslint-disable indent */
export function lazyImage(elem, source = elem.getAttribute('data-src')) {
if (!elem) {
throw new Error('elem cannot be null');
}
if (!source) {
return;
}
@ -73,11 +69,8 @@ import 'css!./style';
elem.setAttribute("data-src", url);
if (userSettings.enableFastFadein()) {
elem.classList.remove('lazy-image-fadein-fast');
} else {
elem.classList.remove('lazy-image-fadein');
}
elem.classList.remove('lazy-image-fadein-fast');
elem.classList.remove('lazy-image-fadein');
}
export function lazyChildren(elem) {