summaryrefslogtreecommitdiff
path: root/background.js
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-02-28 00:35:57 +0530
committersameerasw <[email protected]>2025-02-28 00:35:57 +0530
commitfdf9bbe0d5484a31a02b285e04f6554177cbee29 (patch)
tree5af2b50c6795cdb375dcc1a8d2bf70eb6ccec256 /background.js
parentb84cdcf7c6046b8d0c7d9fd292866e2ebc6a13ab (diff)
load the css earlier
Diffstat (limited to 'background.js')
-rw-r--r--background.js2
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);
}
});