From 233fe7dd33e64218cba4f1dc9c29e90087420261 Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Thu, 23 Jul 2020 10:38:12 +0300 Subject: [PATCH] Use NodeList instead of HTMLCollection --- src/components/images/imageLoader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/images/imageLoader.js b/src/components/images/imageLoader.js index a10805fdb4..069d32fb8b 100644 --- a/src/components/images/imageLoader.js +++ b/src/components/images/imageLoader.js @@ -120,7 +120,7 @@ import 'css!./style'; export function lazyChildren(elem) { if (userSettings.enableBlurhash()) { - for (const lazyElem of elem.getElementsByClassName('lazy')) { + for (const lazyElem of elem.querySelectorAll('.lazy')) { const blurhashstr = lazyElem.getAttribute('data-blurhash'); if (!lazyElem.classList.contains('blurhashed', 'non-blurhashable') && blurhashstr) { itemBlurhashing(lazyElem, blurhashstr);