diff options
author | sameerasw <[email protected]> | 2025-02-26 19:53:25 +0530 |
---|---|---|
committer | sameerasw <[email protected]> | 2025-02-26 19:53:25 +0530 |
commit | 946bb6d1134f1776040ca5f58c2d9534a29e3ea7 (patch) | |
tree | ab23a87127ffa9fc3963197bd59e76574c82aab6 | |
parent | fac878b27b058ba31b6af142ec15583ab0405690 (diff) |
Fixed themes getting wrongly applied when the addon was invoked
-rw-r--r-- | manifest.json | 2 | ||||
-rw-r--r-- | 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; } |