summaryrefslogtreecommitdiff
path: root/popup
diff options
context:
space:
mode:
authorsameerasw <[email protected]>2025-02-26 19:53:25 +0530
committersameerasw <[email protected]>2025-02-26 19:53:25 +0530
commit946bb6d1134f1776040ca5f58c2d9534a29e3ea7 (patch)
treeab23a87127ffa9fc3963197bd59e76574c82aab6 /popup
parentfac878b27b058ba31b6af142ec15583ab0405690 (diff)
Fixed themes getting wrongly applied when the addon was invoked
Diffstat (limited to 'popup')
-rw-r--r--popup/popup.js2
1 files changed, 1 insertions, 1 deletions
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;
}