From 9a5e14f6e66b6a0beb4a7c20c5512b873684b04a Mon Sep 17 00:00:00 2001 From: sameerasw Date: Fri, 25 Apr 2025 17:38:16 +0530 Subject: fixes for www sites not showing features with suffix matching --- background.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'background.js') 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) ); -- cgit v1.2.3