diff options
| author | Henry Jameson <me@hjkos.com> | 2024-06-21 23:28:24 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-06-21 23:28:24 +0300 |
| commit | f9e407de639ce4d20beacd3eca3501639ae161bd (patch) | |
| tree | 49906abb3967f86c968555c3bf8f91553fde63df /src/boot | |
| parent | eed05f1380fd60f9564558c82f142c317ef670f5 (diff) | |
made theme debug easier by making it an actual option
Diffstat (limited to 'src/boot')
| -rw-r--r-- | src/boot/after_store.js | 10 |
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) { |
