Fix theme loading
This commit is contained in:
parent
0229482be8
commit
dfd0208394
|
@ -45,8 +45,11 @@ export default class ThemeManager extends ContentManager {
|
|||
mainPath: paths.mainPath
|
||||
}
|
||||
});
|
||||
if (instance.enabled) {
|
||||
instance.userConfig.enabled = false;
|
||||
instance.enable();
|
||||
if (!instance.css) instance.recompile();
|
||||
else if (instance.enabled) instance.enable();
|
||||
}
|
||||
return instance;
|
||||
} catch (err) {
|
||||
throw err;
|
||||
|
|
Loading…
Reference in New Issue