fully drop support for browsers lacking promises
This commit is contained in:
parent
e31ae08341
commit
f31ebf7f2e
|
@ -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')]);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user