commit: 6c6d356f70ffdb8fe776a6f3322569e46a0ba79d
parent 7c8308a41036604cd384910fd50a87e01ded9bd1
Author: Henry Jameson <me@hjkos.com>
Date: Wed, 18 Sep 2024 02:41:55 +0300
fix obvious mistakes
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/modules/interface.js b/src/modules/interface.js
@@ -244,7 +244,7 @@ const interfaceMod = {
source: userThemeSource
})
} else if (actualThemeName && actualThemeName !== 'custom') {
- const themeData = actualThemeName
+ const themeData = getPreset(actualThemeName)
const realThemeData = normalizeThemeData(themeData)
if (actualThemeName === instanceThemeName) {
// This sole line is the reason why this whole block is above the recompilation check
@@ -258,8 +258,7 @@ const interfaceMod = {
// If we're not not forced to recompile try using
// cache (tryLoadCache return true if load successful)
if (!forceRecompile && !themeDebug && tryLoadCache()) {
- dispatch('setThemeApplied')
- return Promise.resolve()
+ return dispatch('setThemeApplied')
}
const realThemeData = result