Enable theme on start if enabled
This commit is contained in:
parent
08b791e547
commit
d4c71452bc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue