From fdf9bbe0d5484a31a02b285e04f6554177cbee29 Mon Sep 17 00:00:00 2001 From: sameerasw Date: Fri, 28 Feb 2025 00:35:57 +0530 Subject: load the css earlier --- background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'background.js') 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); } }); -- cgit v1.2.3