forked from mystiq/hydrogen-web
Don't make defaultTheme compulsory
This commit is contained in:
parent
a2cbac9e0c
commit
258a604cc6
1 changed files with 2 additions and 2 deletions
|
@ -165,9 +165,9 @@ export class ThemeLoader {
|
|||
getDefaultTheme(): string | undefined {
|
||||
switch (this.preferredColorScheme) {
|
||||
case ColorSchemePreference.Dark:
|
||||
return this._platform.config["defaultTheme"].dark;
|
||||
return this._platform.config["defaultTheme"]?.dark;
|
||||
case ColorSchemePreference.Light:
|
||||
return this._platform.config["defaultTheme"].light;
|
||||
return this._platform.config["defaultTheme"]?.light;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue