From c5dc8714a62529ce7e0755d57f50cfddca3fdfef Mon Sep 17 00:00:00 2001 From: sameerasw Date: Sat, 31 May 2025 13:04:54 +0530 Subject: Revert "fixed themes applying upon fetching" This reverts commit 176a8a76245ed60d347d445441e1b75a31f16461. --- content-script.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'content-script.js') diff --git a/content-script.js b/content-script.js index 82fd3a1..4e99e29 100644 --- a/content-script.js +++ b/content-script.js @@ -16,13 +16,8 @@ // Update our stylesheet content function updateStyles(css) { const stylesheet = getStylesheet(); - // Only update if content has changed to avoid unnecessary reflows - if (stylesheet.textContent !== css) { - stylesheet.textContent = css || ""; - console.log("ZenInternet: Styles were " + (css ? "updated" : "removed")); - } else { - console.log("ZenInternet: Styles unchanged, skipping update"); - } + stylesheet.textContent = css || ""; + console.log("ZenInternet: Styles were " + (css ? "updated" : "removed")); } // Announce content script is ready and provide current hostname -- cgit v1.2.3