From ee9d6512460fc1868e0ded50eee5877ee94905a8 Mon Sep 17 00:00:00 2001 From: dkanada Date: Fri, 24 Jul 2020 09:56:19 +0900 Subject: [PATCH] Merge pull request #1628 from dmitrylyzo/fix-webos3 Use NodeList instead of HTMLCollection (cherry picked from commit 5bc2d567ab8bca96f7679955fb27f0f70f32ba0b) Signed-off-by: Joshua M. Boniface --- 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);