Fix: web app theme intialization (#14761)
This commit is contained in:
parent
64e122c5f6
commit
bb4e7da720
6 changed files with 12 additions and 59 deletions
|
|
@ -48,10 +48,13 @@ export class ThemeBuilder {
|
|||
private buildChecker = false
|
||||
|
||||
public get theme() {
|
||||
if (this._theme === undefined)
|
||||
throw new Error('The theme should be built first and then accessed')
|
||||
else
|
||||
if (this._theme === undefined) {
|
||||
this._theme = new Theme()
|
||||
return this._theme
|
||||
}
|
||||
else {
|
||||
return this._theme
|
||||
}
|
||||
}
|
||||
|
||||
public buildTheme(chatColorTheme: string | null = null, chatColorThemeInverted = false) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue