Fix a dumb bug with theme switching; Add TODO to clean this up
This commit is contained in:
parent
715202680e
commit
7268ca9bd6
|
@ -97,7 +97,12 @@ function Client(/*input, output*/) {
|
||||||
Object.defineProperty(this, 'currentTheme', {
|
Object.defineProperty(this, 'currentTheme', {
|
||||||
get: () => {
|
get: () => {
|
||||||
if (this.currentThemeConfig) {
|
if (this.currentThemeConfig) {
|
||||||
return this.currentThemeConfig.get();
|
// :TODO: clean this up: We have a ugly transition state in which we have a pure raw config vs a ConfigLoader in which get() must be called
|
||||||
|
try {
|
||||||
|
return this.currentThemeConfig.get();
|
||||||
|
} catch(e) {
|
||||||
|
return this.currentThemeConfig;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
info: {
|
info: {
|
||||||
|
|
Loading…
Reference in New Issue