Explorar el Código

Load extra polyfills when isIntersecting is undefined (#4469)

master
Yamagishi Kazutoshi hace 6 años
committed by Eugen Rochko
padre
commit
b9ec3b7e7c
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. +2
    -0
      app/javascript/mastodon/load_polyfills.js

+ 2
- 0
app/javascript/mastodon/load_polyfills.js Ver fichero

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


Cargando…
Cancelar
Guardar