mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
Discard changes to src/vector/index.ts
This commit is contained in:
parent
731f73ebb2
commit
b071ea8c59
@ -82,12 +82,13 @@ function checkBrowserFeatures(): boolean {
|
||||
for (const feature of featureList) {
|
||||
if (window.Modernizr[feature] === undefined) {
|
||||
logger.error(
|
||||
`Looked for feature '${feature}' but Modernizr has no results for this. Has it been configured correctly?`,
|
||||
"Looked for feature '%s' but Modernizr has no results for this. " + "Has it been configured correctly?",
|
||||
feature,
|
||||
);
|
||||
return false;
|
||||
}
|
||||
if (window.Modernizr[feature] === false) {
|
||||
logger.error(`Browser missing feature: '${feature}'`);
|
||||
logger.error("Browser missing feature: '%s'", feature);
|
||||
// toggle flag rather than return early so we log all missing features rather than just the first.
|
||||
featureComplete = false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user