From 7268ca9bd6a600dc63c96acc4f6ca85a0aab7748 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Thu, 4 Aug 2022 10:52:43 -0600 Subject: [PATCH] Fix a dumb bug with theme switching; Add TODO to clean this up --- core/client.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/client.js b/core/client.js index 30a0f7cd..88367773 100644 --- a/core/client.js +++ b/core/client.js @@ -97,7 +97,12 @@ function Client(/*input, output*/) { Object.defineProperty(this, 'currentTheme', { get: () => { 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 { return { info: {