diff options
Diffstat (limited to 'content-script.js')
-rw-r--r-- | content-script.js | 9 |
1 files changed, 2 insertions, 7 deletions
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 |