diff --git a/src/platform/web/Platform.js b/src/platform/web/Platform.js index b0ed55da..dfb26b0f 100644 --- a/src/platform/web/Platform.js +++ b/src/platform/web/Platform.js @@ -187,11 +187,13 @@ export class Platform { this._serviceWorkerHandler, this._config.push ); - 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); + 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); + } }); } catch (err) { this._container.innerText = err.message;