diff options
author | sameerasw <[email protected]> | 2025-02-28 00:35:57 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-02-28 00:35:57 +0530 |
commit | fdf9bbe0d5484a31a02b285e04f6554177cbee29 (patch) | |
tree | 5af2b50c6795cdb375dcc1a8d2bf70eb6ccec256 | |
parent | b84cdcf7c6046b8d0c7d9fd292866e2ebc6a13ab (diff) |
load the css earlier
-rw-r--r-- | background.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/background.js b/background.js index 067bad7..126c295 100644 --- a/background.js +++ b/background.js @@ -98,7 +98,7 @@ browser.storage.local.get("transparentZenSettings").then((settings) => { browser.tabs.onUpdated.addListener((tabId, changeInfo, tab) => { // if (logging) console.log("onUpdated called with", tabId, changeInfo, tab); // Apply CSS when a tab is updated - if (changeInfo.status === "complete") { + if (changeInfo.status === "complete" || changeInfo.status === "loading") { applyCSSToTab(tab); } }); |