fully drop support for browsers lacking promises

This commit is contained in:
ansuz 2022-02-25 14:27:49 +05:30
parent e31ae08341
commit f31ebf7f2e

View File

@ -86,11 +86,11 @@ define([
} }
} catch (e) { console.error(e); failStore(); } } catch (e) { console.error(e); failStore(); }
require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]);
if (typeof(Promise) !== 'function') { if (typeof(Promise) !== 'function') {
setTimeout(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."; 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); window.alert(s);
}); });
} }
require([document.querySelector('script[data-bootload]').getAttribute('data-bootload')]);
}); });