From 4ec02b0ad8233eca2a91b4701b5b2391c52ea430 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 16 Mar 2022 11:22:09 +0530 Subject: [PATCH] abort loading if promises are not supported in sframe --- www/common/sframe-boot2.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/www/common/sframe-boot2.js b/www/common/sframe-boot2.js index 2870be392..0ef4fae80 100644 --- a/www/common/sframe-boot2.js +++ b/www/common/sframe-boot2.js @@ -43,5 +43,12 @@ define([ throw e; }; + if (typeof(Promise) !== 'function') { + return void setTimeout(function () { + var s = "Internet Explorer is not supported anymore, including by Microsoft.\n\nMost of CryptPad's collaborative functionality requires a modern browser to work.\n\nWe recommend Mozilla Firefox."; + window.alert(s); + }); + } + require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]); });