aboutsummaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
Diffstat (limited to 'content')
-rw-r--r--content/content.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/content/content.js b/content/content.js
index 998ff49..fee0860 100644
--- a/content/content.js
+++ b/content/content.js
@@ -99,8 +99,10 @@ async function main() {
if (is_privileged_url(document.URL))
return;
- browser.runtime.onMessage.addListener(on_page_info_request);
- repo_query_cacher.start();
+ if (window.top === window) {
+ browser.runtime.onMessage.addListener(on_page_info_request);
+ repo_query_cacher.start();
+ }
#IF MOZILLA || MV3
try {