about summary refs log tree commit diff
path: root/app/javascript/mastodon/load_polyfills.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-14 10:16:37 +0900
committerGitHub <noreply@github.com>2022-10-14 03:16:37 +0200
commit219c38b9217d6dbb1621c27f64e9bf86bf92ec19 (patch)
tree64531d4cb88106954de193f9f05b623455748485 /app/javascript/mastodon/load_polyfills.js
parentf01310dadbca94c74aa44e0a4725d49c5ac15434 (diff)
Replace `CancelToken` to `AbortSignal` (#19352)
Diffstat (limited to 'app/javascript/mastodon/load_polyfills.js')
-rw-r--r--app/javascript/mastodon/load_polyfills.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/mastodon/load_polyfills.js b/app/javascript/mastodon/load_polyfills.js
index 73eedc9dc..cc5bcd18f 100644
--- a/app/javascript/mastodon/load_polyfills.js
+++ b/app/javascript/mastodon/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 &&