mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-02 07:31:38 +01:00
Fix code breaking on dev server
This commit is contained in:
parent
acffd15002
commit
b5fd3656a7
@ -187,11 +187,13 @@ export class Platform {
|
|||||||
this._serviceWorkerHandler,
|
this._serviceWorkerHandler,
|
||||||
this._config.push
|
this._config.push
|
||||||
);
|
);
|
||||||
|
if (this._themeLoader) {
|
||||||
const manifests = this.config["themeManifests"];
|
const manifests = this.config["themeManifests"];
|
||||||
await this._themeLoader?.init(manifests, log);
|
await this._themeLoader?.init(manifests, log);
|
||||||
const { themeName, themeVariant } = await this._themeLoader.getActiveTheme();
|
const { themeName, themeVariant } = await this._themeLoader.getActiveTheme();
|
||||||
log.log({ l: "Active theme", name: themeName, variant: themeVariant });
|
log.log({ l: "Active theme", name: themeName, variant: themeVariant });
|
||||||
this._themeLoader?.setTheme(themeName, themeVariant, log);
|
this._themeLoader.setTheme(themeName, themeVariant, log);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this._container.innerText = err.message;
|
this._container.innerText = err.message;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user