소스 검색

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


불러오는 중...
취소
저장