summaryrefslogtreecommitdiff
path: root/background.js
diff options
context:
space:
mode:
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)
);