Fix a dumb bug with theme switching; Add TODO to clean this up
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
Reference in New Issue
Block a user