hotfix for themes

This commit is contained in:
Zack Rauen 2019-06-19 11:52:32 -04:00
parent 89573b8d48
commit 79650ae886
2 changed files with 3 additions and 3 deletions

View File

@ -1426,7 +1426,7 @@ var ContentManager = (() => {
if (!parsed.name) throw new MetaError("META missing name data."); if (!parsed.name) throw new MetaError("META missing name data.");
return parsed; return parsed;
} }
parseNewMeta(content) { parseNewMeta(content) {
const block = content.split("/**", 2)[1].split("*/", 1)[0]; const block = content.split("/**", 2)[1].split("*/", 1)[0];
const out = {}; const out = {};
@ -1465,7 +1465,7 @@ var ContentManager = (() => {
const meta = self.extractMeta(content); const meta = self.extractMeta(content);
meta.filename = path.basename(filename); meta.filename = path.basename(filename);
if (!isPlugin) { if (!isPlugin) {
meta.css = content.split("\n").slice(1).join("\n"); meta.css = content;
content = `module.exports = ${JSON.stringify(meta)};`; content = `module.exports = ${JSON.stringify(meta)};`;
} }
if (isPlugin) { if (isPlugin) {

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long