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

Only add background color to blurhashed items

This commit is contained in:
Bill Thornton 2020-08-19 13:47:16 -04:00
parent e5198a6328
commit f4a329433e

View file

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