summaryrefslogtreecommitdiff
path: root/background.js
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-02-27 23:09:40 +0530
committersameerasw <[email protected]>2025-02-27 23:09:40 +0530
commitb84cdcf7c6046b8d0c7d9fd292866e2ebc6a13ab (patch)
tree2db4576c406bf86dbe49487e79510319ec61f4b4 /background.js
parentd020d729d338ee71b59130ff1a820363dc0053e7 (diff)
updated pop-up footer
Diffstat (limited to 'background.js')
-rw-r--r--background.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/background.js b/background.js
index 3a8a958..067bad7 100644
--- a/background.js
+++ b/background.js
@@ -1,4 +1,4 @@
-let logging = true;
+let logging = false;
async function applyCSSToTab(tab) {
if (logging) console.log("applyCSSToTab called with", tab);
@@ -103,9 +103,9 @@ browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {
}
});
-// browser.tabs.onActivated.addListener(async (activeInfo) => {
-// if (logging) console.log("onActivated called with", activeInfo);
-// // Apply CSS when a tab is activated
-// const tab = await browser.tabs.get(activeInfo.tabId);
-// applyCSSToTab(tab);
-// });
+browser.tabs.onActivated.addListener(async (activeInfo) => {
+ if (logging) console.log("onActivated called with", activeInfo);
+ // Apply CSS when a tab is activated
+ const tab = await browser.tabs.get(activeInfo.tabId);
+ applyCSSToTab(tab);
+});