aboutsummaryrefslogtreecommitdiff
path: root/src/boot
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-06-21 23:28:24 +0300
committerHenry Jameson <me@hjkos.com>2024-06-21 23:28:24 +0300
commitf9e407de639ce4d20beacd3eca3501639ae161bd (patch)
tree49906abb3967f86c968555c3bf8f91553fde63df /src/boot
parenteed05f1380fd60f9564558c82f142c317ef670f5 (diff)
made theme debug easier by making it an actual option
Diffstat (limited to 'src/boot')
-rw-r--r--src/boot/after_store.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/boot/after_store.js b/src/boot/after_store.js
index bcab7a66..b93e28a3 100644
--- a/src/boot/after_store.js
+++ b/src/boot/after_store.js
@@ -353,18 +353,20 @@ const afterStoreSetup = async ({ store, i18n }) => {
await setConfig({ store })
- const { customTheme, customThemeSource, forceThemeRecompilation } = store.state.config
+ const { customTheme, customThemeSource, forceThemeRecompilation, themeDebug } = store.state.config
const { theme } = store.state.instance
const customThemePresent = customThemeSource || customTheme
- if (!forceThemeRecompilation && tryLoadCache()) {
+ console.log('DEBUG INITIAL', themeDebug, forceThemeRecompilation)
+
+ if (!forceThemeRecompilation && !themeDebug && tryLoadCache()) {
store.commit('setThemeApplied')
} else {
if (customThemePresent) {
if (customThemeSource && customThemeSource.themeEngineVersion === CURRENT_VERSION) {
- applyTheme(customThemeSource)
+ applyTheme(customThemeSource, () => {}, themeDebug)
} else {
- applyTheme(customTheme)
+ applyTheme(customTheme, () => {}, themeDebug)
}
store.commit('setThemeApplied')
} else if (theme) {