Enable theme on start if enabled

This commit is contained in:
Samuel Elliott 2018-02-08 23:53:39 +00:00
parent 08b791e547
commit d4c71452bc
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ export default class extends ContentManager {
try { try {
const css = await FileUtils.readFile(paths.mainPath); const css = await FileUtils.readFile(paths.mainPath);
const instance = new Theme({ configs, info, main, paths: { contentPath: paths.contentPath, dirName: paths.dirName }, css }); const instance = new Theme({ configs, info, main, paths: { contentPath: paths.contentPath, dirName: paths.dirName }, css });
if (instance.enabled) instance.enable();
return instance; return instance;
} catch (err) { } catch (err) {
throw err; throw err;