about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/load_polyfills.js
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2023-01-05 18:44:15 +0100
committerGitHub <noreply@github.com>2023-01-05 18:44:15 +0100
commitad17e1944aa4c01c5637199b464c9d78b7e54af2 (patch)
treedee9d23334a0d23fbc3737e3c17033727805a141 /app/javascript/flavours/glitch/load_polyfills.js
parent7e9d5bdbb9125197afb5b3df69ce49a79451d697 (diff)
parentc4649ae9d4ef34cc0bad9d5df0da8e8b6c729522 (diff)
Merge pull request #2071 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/javascript/flavours/glitch/load_polyfills.js')
-rw-r--r--app/javascript/flavours/glitch/load_polyfills.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/app/javascript/flavours/glitch/load_polyfills.js b/app/javascript/flavours/glitch/load_polyfills.js
index cc5bcd18f..f5a897f75 100644
--- a/app/javascript/flavours/glitch/load_polyfills.js
+++ b/app/javascript/flavours/glitch/load_polyfills.js
@@ -23,15 +23,14 @@ function loadPolyfills() {
   );
 
   // Latest version of Firefox and Safari do not have IntersectionObserver.
-  // Edge does not have requestIdleCallback and object-fit CSS property.
+  // Edge does not have requestIdleCallback.
   // This avoids shipping them all the polyfills.
   const needsExtraPolyfills = !(
     window.AbortController &&
     window.IntersectionObserver &&
     window.IntersectionObserverEntry &&
     'isIntersecting' in IntersectionObserverEntry.prototype &&
-    window.requestIdleCallback &&
-    'object-fit' in (new Image()).style
+    window.requestIdleCallback
   );
 
   return Promise.all([