code cosmetics: use dom.js $$
This commit is contained in:
parent
f1ba238a23
commit
f2bdc930a0
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user