Merge branch 'develop' of https://github.com/vector-im/element-web into t3chguy/modernizr-webaudio

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

# Conflicts:
#	src/vector/modernizr.js
This commit is contained in:
Michael Telatynski 2024-07-17 19:58:17 +01:00
commit 1eea7fffbe
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D
4 changed files with 2002 additions and 11 deletions

View file

@ -75,6 +75,8 @@ function checkBrowserFeatures(): boolean {
() => window.RegExp?.prototype && "unicodeSets" in window.RegExp.prototype,
);
// ES2024: https://402.ecma-international.org/9.0/#sec-intl.segmenter
// The built-in modernizer 'intl' check only checks for the presence of the Intl object, not the Segmenter,
// and older Firefox has the former but not the latter, so we add our own.
window.Modernizr.addTest("intlsegmenter", () => typeof window.Intl?.Segmenter === "function");
const featureList = Object.keys(window.Modernizr) as Array<keyof ModernizrStatic>;

File diff suppressed because one or more lines are too long