From 946bb6d1134f1776040ca5f58c2d9534a29e3ea7 Mon Sep 17 00:00:00 2001 From: sameerasw Date: Wed, 26 Feb 2025 19:53:25 +0530 Subject: Fixed themes getting wrongly applied when the addon was invoked --- manifest.json | 2 +- popup/popup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index 2034b23..5ae275c 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "manifest_version": 2, "name": "Zen Internet", - "version": "1.1.1", + "version": "1.1.2", "description": "Inject custom css from my repository in real time", "browser_specific_settings": { "gecko": { diff --git a/popup/popup.js b/popup/popup.js index d6495d5..aa0d556 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -254,7 +254,7 @@ new (class ExtensionPopup { let siteKey = null; for (const site of Object.keys(styles)) { const siteName = site.replace(/\.css$/, ""); - if (hostname.includes(siteName)) { + if (hostname === siteName || hostname === `www.${siteName}`) { siteKey = site; break; } -- cgit v1.2.3