commit: b9ec3b7e7c0bbe44e95cb483fa79cb0d4e8e99f6
parent: 9b247c3d8895c5d108893ba8ba927455cdf87423
Author: Yamagishi Kazutoshi <ykzts@desire.sh>
Date: Tue, 1 Aug 2017 02:40:20 +0900
Load extra polyfills when isIntersecting is undefined (#4469)
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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
);