Fix theme loading

This commit is contained in:
Samuel Elliott 2018-03-08 02:41:47 +00:00
parent 0229482be8
commit dfd0208394
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 5 additions and 2 deletions

View File

@ -45,8 +45,11 @@ export default class ThemeManager extends ContentManager {
mainPath: paths.mainPath
}
});
if (!instance.css) instance.recompile();
else if (instance.enabled) instance.enable();
if (instance.enabled) {
instance.userConfig.enabled = false;
instance.enable();
if (!instance.css) instance.recompile();
}
return instance;
} catch (err) {
throw err;