We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5c6182 commit 56b4bd3Copy full SHA for 56b4bd3
packages/@sanity/base/src/preview/streams/intersectionObservableFor.js
@@ -11,9 +11,9 @@ const ROOT_MARGIN_PX = 150
11
Adapted from the polyfill at https://github.com/WICG/IntersectionObserver
12
*/
13
function isIntersectionObserverSupported() {
14
- if ('IntersectionObserver' in window &&
15
- 'IntersectionObserverEntry' in window &&
16
- 'intersectionRatio' in IntersectionObserverEntry.prototype) {
+ if ('IntersectionObserver' in window
+ && 'IntersectionObserverEntry' in window
+ && 'intersectionRatio' in IntersectionObserverEntry.prototype) {
17
18
// Minimal polyfill for Edge 15's lack of `isIntersecting`
19
// See: https://github.com/WICG/IntersectionObserver/issues/211
0 commit comments