mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Add Modernizr test for Promise.allSettled given js-sdk and react-sdk depend on it
This commit is contained in:
parent
f78be2631a
commit
a70803a36e
@ -51,6 +51,9 @@ function checkBrowserFeatures() {
|
|||||||
// ES2018: http://262.ecma-international.org/9.0/#sec-promise.prototype.finally
|
// ES2018: http://262.ecma-international.org/9.0/#sec-promise.prototype.finally
|
||||||
window.Modernizr.addTest("promiseprototypefinally", () =>
|
window.Modernizr.addTest("promiseprototypefinally", () =>
|
||||||
typeof window.Promise?.prototype?.finally === "function");
|
typeof window.Promise?.prototype?.finally === "function");
|
||||||
|
// ES2020: http://262.ecma-international.org/#sec-promise.allsettled
|
||||||
|
window.Modernizr.addTest("promiseallsettled", () =>
|
||||||
|
typeof window.Promise?.allSettled === "function");
|
||||||
// ES2018: https://262.ecma-international.org/9.0/#sec-get-regexp.prototype.dotAll
|
// ES2018: https://262.ecma-international.org/9.0/#sec-get-regexp.prototype.dotAll
|
||||||
window.Modernizr.addTest("regexpdotall", () => (
|
window.Modernizr.addTest("regexpdotall", () => (
|
||||||
window.RegExp?.prototype &&
|
window.RegExp?.prototype &&
|
||||||
|
Loading…
Reference in New Issue
Block a user