commit cc5f582897211c510cc18851ea6bffc18bf943e4 Author: Wojtek Kosior Date: Tue Sep 20 20:17:31 2022 +0200 make popup always show information about the main frame 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 {