Преглед на файлове

Load extra polyfills when isIntersecting is undefined (#4469)

master
Yamagishi Kazutoshi преди 6 години
committed by Eugen Rochko
родител
ревизия
b9ec3b7e7c
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. +2
    -0
      app/javascript/mastodon/load_polyfills.js

+ 2
- 0
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
);


Зареждане…
Отказ
Запис