diff options
author | sameerasw <[email protected]> | 2025-02-27 22:00:35 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-02-27 22:00:35 +0530 |
commit | 9e8de1c7b8ab58b12924cedfb7284af58f5b8181 (patch) | |
tree | 6204c44144e4dfb9cda386ec7f4045c6cc73e86f /background.js | |
parent | e6179900efbd867cad38536e645d620ffa2f74c5 (diff) |
disabled style update on switching tabs
Diffstat (limited to 'background.js')
-rw-r--r-- | background.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/background.js b/background.js index cd2769a..0cf6b1b 100644 --- a/background.js +++ b/background.js @@ -99,16 +99,16 @@ browser.storage.local.get("transparentZenSettings").then((settings) => { }); browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { - if (logging) console.log("onUpdated called with", tabId, changeInfo, tab); + // if (logging) console.log("onUpdated called with", tabId, changeInfo, tab); // Apply CSS when a tab is updated if (changeInfo.status === "complete") { 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); -}); +// 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); +// }); |