Browse Source

Fix path matching when path is undefined

simov 8 years ago
parent
commit
0bc5b02331
1 changed files with 1 additions and 1 deletions
  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)
         }
       }