Skip to content

Commit

Permalink
Merge pull request #7 from khiga8/kh-dont_run-background
Browse files Browse the repository at this point in the history
Add filter so background.js does not run on non-github sites.
  • Loading branch information
khiga8 authored Feb 12, 2022
2 parents 5914266 + 70bc5d9 commit b2878a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions background.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) {
chrome.tabs.executeScript(details.tabId,{file:"contentScript.js"});
});
chrome.tabs.executeScript(details.tabId,{file:"contentScript.js"});
}, {url: [{hostContains: 'github'}]});

0 comments on commit b2878a4

Please sign in to comment.