aboutsummaryrefslogtreecommitdiff
path: root/ext/fg
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 21:04:34 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2019-11-25 21:04:34 -0500
commit820beb7c9338bd81501d1779b10181c7cced9992 (patch)
tree73963add4f9171655567a0b7e74e1166abd7a91d /ext/fg
parent9dc03f6d4764d589930efbcc809db7076b739624 (diff)
Fix incorrect opacity check
Diffstat (limited to 'ext/fg')
-rw-r--r--ext/fg/js/document.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js
index a168705e..8161c85a 100644
--- a/ext/fg/js/document.js
+++ b/ext/fg/js/document.js
@@ -359,7 +359,7 @@ function isElementTransparent(element) {
}
const style = window.getComputedStyle(element);
return (
- parseFloat(style.opacity) < 0 ||
+ parseFloat(style.opacity) <= 0 ||
style.visibility === 'hidden' ||
(style.backgroundImage === 'none' && isColorTransparent(style.backgroundColor))
);