forked from mystiq/hydrogen-web
Fix code breaking on dev server
This commit is contained in:
parent
acffd15002
commit
b5fd3656a7
1 changed files with 7 additions and 5 deletions
|
@ -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…
Reference in a new issue