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

Appply review suggestions

This commit is contained in:
ferferga 2020-06-02 17:59:08 +02:00
parent d5f75abe77
commit d32dd7d7d8
2 changed files with 10 additions and 3 deletions

View file

@ -71,6 +71,7 @@ import 'css!./style';
if (!target.classList.contains('blurhashed') && userSettings.enableBlurhash()) {
itemBlurhashing(target);
}
if (entry.intersectionRatio > 0) {
if (source) fillImageElement(target, source);
@ -88,7 +89,9 @@ import 'css!./style';
preloaderImg.src = url;
// This is necessary, so switching between blurhash enabled and disabled works
if (!userSettings.enableBlurhash()) elem.classList.add('lazy-hidden');
if (!userSettings.enableBlurhash()) {
elem.classList.add('lazy-hidden');
}
preloaderImg.addEventListener('load', () => {
if (elem.tagName !== 'IMG') {