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

Skip adding background color for non-blurhashable items

This commit is contained in:
Bill Thornton 2020-08-19 13:36:29 -04:00
parent 5e1d4edd87
commit e5198a6328

View file

@ -87,7 +87,9 @@ import 'css!./style';
requestAnimationFrame(() => { requestAnimationFrame(() => {
if (elem.tagName !== 'IMG') { if (elem.tagName !== 'IMG') {
elem.style.backgroundImage = "url('" + url + "')"; elem.style.backgroundImage = "url('" + url + "')";
elem.style.backgroundColor = '#fff'; if (!elem.classList.contains('non-blurhashable')) {
elem.style.backgroundColor = '#fff';
}
} else { } else {
elem.setAttribute('src', url); elem.setAttribute('src', url);
} }