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 /popup/popup.js | |
parent | fac878b27b058ba31b6af142ec15583ab0405690 (diff) |
Fixed themes getting wrongly applied when the addon was invoked
Diffstat (limited to 'popup/popup.js')
-rw-r--r-- | popup/popup.js | 2 |
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; } |