PUGE преди 2 години
родител
ревизия
344e4809e5
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      back/background.js

+ 1 - 1
back/background.js

@@ -102,7 +102,7 @@ function lanjie (blockList) {
     function(details) {
       
       for (const key in blockList) {
-        if (details.url.includes(key) || new RegExp(key).test(details.url)) {
+        if (details.url.includes(key) || new RegExp(key).test(details.url) || details.url == key) {
           // console.log(details.url)
           return {
             redirectUrl: blockList[key]