Przeglądaj źródła

Load extra polyfills when isIntersecting is undefined (#4469)

master
Yamagishi Kazutoshi 6 lat temu
committed by Eugen Rochko
rodzic
commit
b9ec3b7e7c
1 zmienionych plików z 2 dodań i 0 usunięć
  1. +2
    -0
      app/javascript/mastodon/load_polyfills.js

+ 2
- 0
app/javascript/mastodon/load_polyfills.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz