mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
Remove method
This commit is contained in:
parent
b306344739
commit
654e83a5f9
@ -182,7 +182,7 @@ export class Platform {
|
||||
);
|
||||
const manifests = this.config["themeManifests"];
|
||||
await this._themeLoader?.init(manifests);
|
||||
await this._themeLoader?.loadThemeFromSetting();
|
||||
this._themeLoader?.setTheme(await this._themeLoader.getActiveTheme());
|
||||
}
|
||||
|
||||
_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) {
|
||||
const themeLocation = this._themeMapping[themeName];
|
||||
if (!themeLocation) {
|
||||
|
Loading…
Reference in New Issue
Block a user