Merge pull request #1628 from dmitrylyzo/fix-webos3

Use NodeList instead of HTMLCollection
This commit is contained in:
dkanada
2020-07-24 09:56:19 +09:00
committed by GitHub

View File

@@ -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);