Parcourir la source

Load extra polyfills when isIntersecting is undefined (#4469)

master
Yamagishi Kazutoshi il y a 6 ans
committed by Eugen Rochko
Parent
révision
b9ec3b7e7c
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. +2
    -0
      app/javascript/mastodon/load_polyfills.js

+ 2
- 0
app/javascript/mastodon/load_polyfills.js Voir le fichier

@@ -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
);


Chargement…
Annuler
Enregistrer