diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-25 21:04:34 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2019-11-25 21:04:34 -0500 |
commit | 820beb7c9338bd81501d1779b10181c7cced9992 (patch) | |
tree | 73963add4f9171655567a0b7e74e1166abd7a91d /ext | |
parent | 9dc03f6d4764d589930efbcc809db7076b739624 (diff) |
Fix incorrect opacity check
Diffstat (limited to 'ext')
-rw-r--r-- | ext/fg/js/document.js | 2 |
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)) ); |