mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Don't fail on erros; expect the code to throw!
This commit is contained in:
parent
f15e23762a
commit
80fb953688
@ -64,6 +64,7 @@ export class ThemeLoader {
|
|||||||
this._themeBuilder = new ThemeBuilder(this._platform, idToManifest, this.preferredColorScheme);
|
this._themeBuilder = new ThemeBuilder(this._platform, idToManifest, this.preferredColorScheme);
|
||||||
for (let i = 0; i < results.length; ++i) {
|
for (let i = 0; i < results.length; ++i) {
|
||||||
const { body } = results[i];
|
const { body } = results[i];
|
||||||
|
try {
|
||||||
if (body.extends) {
|
if (body.extends) {
|
||||||
await this._themeBuilder.populateDerivedTheme(body);
|
await this._themeBuilder.populateDerivedTheme(body);
|
||||||
}
|
}
|
||||||
@ -71,6 +72,10 @@ export class ThemeLoader {
|
|||||||
this._populateThemeMap(body, manifestLocations[i], log);
|
this._populateThemeMap(body, manifestLocations[i], log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
catch(e) {
|
||||||
|
console.error(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
Object.assign(this._themeMapping, this._themeBuilder.themeMapping);
|
Object.assign(this._themeMapping, this._themeBuilder.themeMapping);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user