From 9d3f4286b5d2b46e56aa8813e3a15e5501726367 Mon Sep 17 00:00:00 2001 From: ted423 Date: Mon, 28 Feb 2022 14:36:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BE=A7=E8=BE=B9=E6=A0=8F=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/ronggang/PT-Plugin-Plus/issues/549 --- src/content/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/index.ts b/src/content/index.ts index 1c4ab0ce7..3ea264869 100644 --- a/src/content/index.ts +++ b/src/content/index.ts @@ -152,7 +152,7 @@ class PTPContent { let site = sites.find((item: Site) => { let cdn = [item.url].concat(item.cdn); - return item.host == host || cdn.join("").indexOf(host) > -1; + return item.host == host || cdn.join("").indexOf(`//${host}`) > -1; }); if (site) {