From: Yamagishi Kazutoshi Date: Mon, 31 Jul 2017 17:40:20 +0000 (+0900) Subject: Load extra polyfills when isIntersecting is undefined (#4469) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b9ec3b7e7c0bbe44e95cb483fa79cb0d4e8e99f6;p=mastodon.git Load extra polyfills when isIntersecting is undefined (#4469) --- 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 );