From 005fff569598b290a580f5e57faddd4e2a37554a Mon Sep 17 00:00:00 2001 From: Kate Higa Date: Sun, 13 Feb 2022 17:07:38 -0700 Subject: [PATCH] Don't run background.js outside of github.com host url --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/background.js b/background.js index 1158aa5..b1244c3 100644 --- a/background.js +++ b/background.js @@ -1,3 +1,3 @@ chrome.webNavigation.onHistoryStateUpdated.addListener(function(details) { chrome.tabs.executeScript(details.tabId,{file:"contentScript.js"}); -}, {url: [{hostContains: 'github'}]}); +}, {url: [{hostEquals: 'github.com'}]});