code cosmetics: use dom.js $$

This commit is contained in:
tophf 2017-05-02 17:13:42 +03:00
parent f1ba238a23
commit f2bdc930a0

View File

@ -354,7 +354,7 @@ Object.assign(handleEvent, {
}, },
loadFavicons(container = document.body) { loadFavicons(container = document.body) {
for (const img of container.getElementsByTagName('img')) { for (const img of $$('img', container)) {
if (img.dataset.src) { if (img.dataset.src) {
img.src = img.dataset.src; img.src = img.dataset.src;
delete img.dataset.src; delete img.dataset.src;