PUGE 2 gadi atpakaļ
vecāks
revīzija
344e4809e5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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]