about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/util/load_polyfills.js
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2020-02-18 17:22:44 +0100
committermultiple creatures <dev@multiple-creature.party>2020-02-21 02:41:48 -0600
commit656091f164a07d6c901b7bf20adca168085ee777 (patch)
treef0b16abeac7c46f464eb70f37a98f5431d5215ef /app/javascript/flavours/glitch/util/load_polyfills.js
parent33751e4d35863bbe2af96c5aa2f674bb407f528d (diff)
[Glitch] Fix old browsers crashing because of missing `finally` polyfill in web UI
Port 1314bba68a5f2d271312bad08f108e1ff56c2c00 to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours/glitch/util/load_polyfills.js')
-rw-r--r--app/javascript/flavours/glitch/util/load_polyfills.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/util/load_polyfills.js b/app/javascript/flavours/glitch/util/load_polyfills.js
index 8cb81c1a6..73eedc9dc 100644
--- a/app/javascript/flavours/glitch/util/load_polyfills.js
+++ b/app/javascript/flavours/glitch/util/load_polyfills.js
@@ -18,7 +18,8 @@ function loadPolyfills() {
     Number.isNaN &&
     Object.assign &&
     Object.values &&
-    window.Symbol
+    window.Symbol &&
+    Promise.prototype.finally
   );
 
   // Latest version of Firefox and Safari do not have IntersectionObserver.