Skip to content

Commit

Permalink
fix #2024 - Accessing HTMLElement and SVGElement through window (
Browse files Browse the repository at this point in the history
…#2025)

* fix: accessing `HTMLElement` and `SVGElement` through `window`

* chore: revert changes in dist files
  • Loading branch information
3rdvision committed Nov 7, 2022
1 parent 264f584 commit e1ef76a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/shared/is-visible.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
*/

function isStyleVisible(element) {
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
if (
!(element instanceof window.HTMLElement) &&
!(element instanceof window.SVGElement)
) {
return false
}

Expand Down

0 comments on commit e1ef76a

Please sign in to comment.