Skip to content

Commit e1ef76a

Browse files
authored
fix #2024 - Accessing HTMLElement and SVGElement through window (#2025)
* fix: accessing `HTMLElement` and `SVGElement` through `window` * chore: revert changes in dist files
1 parent 264f584 commit e1ef76a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/shared/is-visible.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@
55
*/
66

77
function isStyleVisible(element) {
8-
if (!(element instanceof HTMLElement) && !(element instanceof SVGElement)) {
8+
if (
9+
!(element instanceof window.HTMLElement) &&
10+
!(element instanceof window.SVGElement)
11+
) {
912
return false
1013
}
1114

0 commit comments

Comments
 (0)