Procházet zdrojové kódy

Fix path matching when path is undefined

simov před 8 roky
rodič
revize
0bc5b02331
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      background/background.js

+ 1 - 1
background/background.js

@@ -144,7 +144,7 @@ chrome.tabs.onUpdated.addListener((id, info, tab) => {
           state.origins['*://' + win.location.host] ||
           state.origins['*://*']
 
-        if (new RegExp(path).test(win.location.href)) {
+        if (path && new RegExp(path).test(win.location.href)) {
           inject(id)
         }
       }