Skip to content

Commit

Permalink
Fix issue #65
Browse files Browse the repository at this point in the history
  • Loading branch information
horihiro committed May 3, 2024
1 parent f90997e commit d27eaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@
if (from.node == to.node) {
const computedStyle = getComputedStyle(from.node.parentNode);
const size = Math.floor(parseFloat(computedStyle.fontSize) / 4);
if (from.node.textContent === match.keyword && computedStyle.filter === 'none') {
if (from.node.textContent === match.keyword && from.node.parentNode.childNodes.length == 1 && computedStyle.filter === 'none') {
from.node.parentNode.classList.add(CLASS_NAME_BLURRED);
from.node.parentNode.classList.add(CLASS_NAME_KEEP);
if (options?.showValue) {
Expand Down

0 comments on commit d27eaa7

Please sign in to comment.