diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-08-01 02:40:20 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-31 19:40:20 +0200 |
commit | b9ec3b7e7c0bbe44e95cb483fa79cb0d4e8e99f6 (patch) | |
tree | e21082a35a6fcd0793ac56f97fc50357dff9db53 /app | |
parent | 9b247c3d8895c5d108893ba8ba927455cdf87423 (diff) |
Load extra polyfills when isIntersecting is undefined (#4469)
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 ); |