Fix code breaking on dev server

This commit is contained in:
RMidhunSuresh 2022-06-12 16:51:10 +05:30
parent acffd15002
commit b5fd3656a7

View file

@ -187,11 +187,13 @@ export class Platform {
this._serviceWorkerHandler,
this._config.push
);
if (this._themeLoader) {
const manifests = this.config["themeManifests"];
await this._themeLoader?.init(manifests, log);
const { themeName, themeVariant } = await this._themeLoader.getActiveTheme();
log.log({ l: "Active theme", name: themeName, variant: themeVariant });
this._themeLoader?.setTheme(themeName, themeVariant, log);
this._themeLoader.setTheme(themeName, themeVariant, log);
}
});
} catch (err) {
this._container.innerText = err.message;