Преглед изворни кода

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


Loading…
Откажи
Сачувај