forked from mystiq/hydrogen-web
Remove method
This commit is contained in:
parent
b306344739
commit
654e83a5f9
2 changed files with 1 additions and 8 deletions
|
@ -182,7 +182,7 @@ export class Platform {
|
||||||
);
|
);
|
||||||
const manifests = this.config["themeManifests"];
|
const manifests = this.config["themeManifests"];
|
||||||
await this._themeLoader?.init(manifests);
|
await this._themeLoader?.init(manifests);
|
||||||
await this._themeLoader?.loadThemeFromSetting();
|
this._themeLoader?.setTheme(await this._themeLoader.getActiveTheme());
|
||||||
}
|
}
|
||||||
|
|
||||||
_createLogger(isDevelopment) {
|
_createLogger(isDevelopment) {
|
||||||
|
|
|
@ -44,13 +44,6 @@ export class ThemeLoader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async loadThemeFromSetting() {
|
|
||||||
const themeName = await this._platform.settingsStorage.getString( "theme");
|
|
||||||
if (themeName) {
|
|
||||||
this.setTheme(themeName);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
setTheme(themeName: string) {
|
setTheme(themeName: string) {
|
||||||
const themeLocation = this._themeMapping[themeName];
|
const themeLocation = this._themeMapping[themeName];
|
||||||
if (!themeLocation) {
|
if (!themeLocation) {
|
||||||
|
|
Loading…
Reference in a new issue