From f2bdc930a0fd4567c5185528bcae743902d911f6 Mon Sep 17 00:00:00 2001 From: tophf Date: Tue, 2 May 2017 17:13:42 +0300 Subject: [PATCH] code cosmetics: use dom.js $$ --- manage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage.js b/manage.js index 20d97a03..d1f3149e 100644 --- a/manage.js +++ b/manage.js @@ -354,7 +354,7 @@ Object.assign(handleEvent, { }, loadFavicons(container = document.body) { - for (const img of container.getElementsByTagName('img')) { + for (const img of $$('img', container)) { if (img.dataset.src) { img.src = img.dataset.src; delete img.dataset.src;