File tree Expand file tree Collapse file tree
src/components/Animations/Computers/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -159,14 +159,15 @@ export class ComputersAnimationElement extends LitElement {
159159 this . isPageVisible = document . visibilityState !== 'hidden'
160160 document . addEventListener ( 'visibilitychange' , this . visibilityChangeHandler )
161161
162- const intersectionObserverCtor = ( globalThis as unknown as { IntersectionObserver ?: typeof IntersectionObserver } )
163- . IntersectionObserver
162+ const IntersectionObserverCtor = (
163+ globalThis as unknown as { IntersectionObserver ?: typeof IntersectionObserver }
164+ ) . IntersectionObserver
164165
165- if ( typeof intersectionObserverCtor !== 'function' ) {
166+ if ( typeof IntersectionObserverCtor !== 'function' ) {
166167 return
167168 }
168169
169- this . intersectionObserver = new intersectionObserverCtor (
170+ this . intersectionObserver = new IntersectionObserverCtor (
170171 ( entries ) => {
171172 const entry = entries . at ( 0 )
172173 const ratio = entry ?. intersectionRatio ?? 0
You can’t perform that action at this time.
0 commit comments