summaryrefslogtreecommitdiff
path: root/background.js
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-04-25 17:38:16 +0530
committersameerasw <[email protected]>2025-04-25 17:38:16 +0530
commit9a5e14f6e66b6a0beb4a7c20c5512b873684b04a (patch)
tree4dd0ed7c454c0a00aa4dc9358c8b348813c610fc /background.js
parent4d7721c17bf2c8fbb517af972cad944f4d39f32c (diff)
fixes for www sites not showing features with suffix matching
Diffstat (limited to 'background.js')
-rw-r--r--background.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/background.js b/background.js
index 45a9346..bc30678 100644
--- a/background.js
+++ b/background.js
@@ -414,11 +414,15 @@ async function applyCSS(tabId, hostname, features) {
JSON.stringify(globalSettings)
);
- const siteKey = `transparentZenSettings.${hostname}`;
+ // UPDATED: Use normalized hostname for consistent settings retrieval
+ const normalizedHostname = normalizeHostname(hostname);
+ const siteKey = `transparentZenSettings.${normalizedHostname}`;
const siteData = await browser.storage.local.get(siteKey);
const featureSettings = siteData[siteKey] || {};
+
console.log(
- "DEBUG: Site-specific settings:",
+ "DEBUG: Site-specific settings from normalized key:",
+ siteKey,
JSON.stringify(featureSettings)
);