[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot] 2024-06-14 16:51:55 +00:00 committed by GitHub
parent 1c883b983e
commit 85c1ac8266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,5 +1,5 @@
import { useNuxtApp } from './nuxt'
import defu from 'defu' import defu from 'defu'
import { useNuxtApp } from './nuxt'
/** @since 3.9.0 */ /** @since 3.9.0 */
export function toArray<T> (value: T | T[]): T[] { export function toArray<T> (value: T | T[]): T[] {
@ -28,7 +28,7 @@ export function useIntersectionObserver (options?: Partial<IntersectionObserverI
const isVisible = entry.isIntersecting || entry.intersectionRatio > 0 const isVisible = entry.isIntersecting || entry.intersectionRatio > 0
if (isVisible && callback) { callback() } if (isVisible && callback) { callback() }
} }
}, defu(options ?? {},{root: null, rootMargin: "0px", threshold: 0})) }, defu(options ?? {}, { root: null, rootMargin: '0px', threshold: 0 }))
} }
callbacks.set(element, callback) callbacks.set(element, callback)
observer.observe(element) observer.observe(element)