about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/load_polyfills.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-14 10:16:37 +0900
committerClaire <claire.github-309c@sitedethib.com>2022-10-28 19:24:02 +0200
commite301cfb4637ff0ef75de066d929d52c39ddfb7ea (patch)
treea78185dcde66790487b61c8024e9b7d02f3b2d16 /app/javascript/flavours/glitch/load_polyfills.js
parent67b4ecdd2124cb2cf05731b26a77129bb8151236 (diff)
[Glitch] Replace `CancelToken` to `AbortSignal`
Port 219c38b9217d6dbb1621c27f64e9bf86bf92ec19 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/load_polyfills.js')
-rw-r--r--app/javascript/flavours/glitch/load_polyfills.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/load_polyfills.js b/app/javascript/flavours/glitch/load_polyfills.js
index 73eedc9dc..cc5bcd18f 100644
--- a/app/javascript/flavours/glitch/load_polyfills.js
+++ b/app/javascript/flavours/glitch/load_polyfills.js
@@ -26,6 +26,7 @@ function loadPolyfills() {
   // Edge does not have requestIdleCallback and object-fit CSS property.
   // This avoids shipping them all the polyfills.
   const needsExtraPolyfills = !(
+    window.AbortController &&
     window.IntersectionObserver &&
     window.IntersectionObserverEntry &&
     'isIntersecting' in IntersectionObserverEntry.prototype &&