Explorar o código

Fix path matching when path is undefined

simov %!s(int64=8) %!d(string=hai) anos
pai
achega
0bc5b02331
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)
         }
       }