File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -252,23 +252,23 @@ function interactionHandler(event: Event): void {
252252
253253const intersectionObserver = ! ! window . IntersectionObserver
254254 ? new IntersectionObserver (
255- ( entries ) => {
256- for ( const entry of entries ) {
257- if ( entry . isIntersecting ) {
258- const node = entry . target ;
259- if ( node instanceof HTMLElement ) {
260- logEvent ( getEvent ( "Impression" , node ) , node ) ;
261- if ( intersectionObserver ) {
262- intersectionObserver . unobserve ( node ) ;
255+ ( entries ) => {
256+ for ( const entry of entries ) {
257+ if ( entry . isIntersecting ) {
258+ const node = entry . target ;
259+ if ( node instanceof HTMLElement ) {
260+ logEvent ( getEvent ( "Impression" , node ) , node ) ;
261+ if ( intersectionObserver ) {
262+ intersectionObserver . unobserve ( node ) ;
263+ }
263264 }
264265 }
265266 }
266- }
267- } ,
268- {
269- threshold : INTERSECTION_THRESHOLD ,
270- } ,
271- )
267+ } ,
268+ {
269+ threshold : INTERSECTION_THRESHOLD ,
270+ } ,
271+ )
272272 : undefined ;
273273
274274const PRODUCT_SELECTOR =
You can’t perform that action at this time.
0 commit comments