diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/load_polyfills.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/mastodon/load_polyfills.js b/app/javascript/mastodon/load_polyfills.js index df7889118..8927b7358 100644 --- a/app/javascript/mastodon/load_polyfills.js +++ b/app/javascript/mastodon/load_polyfills.js @@ -24,6 +24,8 @@ function loadPolyfills() { // This avoids shipping them all the polyfills. const needsExtraPolyfills = !( window.IntersectionObserver && + window.IntersectionObserverEntry && + 'isIntersecting' in IntersectionObserverEntry.prototype && window.requestIdleCallback && 'object-fit' in (new Image()).style ); |