From fb5cbbdddc9113980e055fd75f47c77138e1db25 Mon Sep 17 00:00:00 2001 From: taloric Date: Mon, 25 Sep 2023 21:26:14 +0800 Subject: [PATCH] add domain list length condition --- extension.js | 1 + 1 file changed, 1 insertion(+) diff --git a/extension.js b/extension.js index 035c978..bff4e6b 100644 --- a/extension.js +++ b/extension.js @@ -163,6 +163,7 @@ async function replaceImgUrl(progress) { if ( domainList !== undefined && domainList !== null && + domainList.length > 0 && domainList.includes(new URL(imageUrl).hostname) ) { console.log(`图片 ${imageUrl} 在 domainList 中,跳过`);