Skip to content

Commit fe68dff

Browse files
committed
Fix lint error in naming of constructor for computer animation
1 parent 8a806a2 commit fe68dff

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

  • src/components/Animations/Computers/client

src/components/Animations/Computers/client/index.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)