File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ if (exports.window.__pan.inertiaStartListener) {
92
92
var detectImpressions = function ( ) {
93
93
var elementsBeingImpressed = document . querySelectorAll ( "[data-pan]" ) ;
94
94
elementsBeingImpressed . forEach ( function ( element ) {
95
- if ( ! element . checkVisibility ( ) ) {
95
+ if ( element . checkVisibility !== undefined &&
96
+ ! element . checkVisibility ( ) ) {
96
97
return ;
97
98
}
98
99
var name = element . getAttribute ( "data-pan" ) ;
Original file line number Diff line number Diff line change @@ -135,7 +135,10 @@ if (window.__pan.inertiaStartListener) {
135
135
const elementsBeingImpressed = document . querySelectorAll ( "[data-pan]" ) ;
136
136
137
137
elementsBeingImpressed . forEach ( ( element : Element ) : void => {
138
- if ( ! element . checkVisibility ( ) ) {
138
+ if (
139
+ element . checkVisibility !== undefined &&
140
+ ! element . checkVisibility ( )
141
+ ) {
139
142
return ;
140
143
}
141
144
You can’t perform that action at this time.
0 commit comments