Fix local theme folder
This commit is contained in:
parent
1ead5fd53a
commit
e5cded0ad6
@ -12,7 +12,7 @@ module.exports = {
|
|||||||
getFilename: getFilename
|
getFilename: getFilename
|
||||||
};
|
};
|
||||||
|
|
||||||
fs.readdir("client/themes/", (err, builtInThemes) => {
|
fs.readdir(path.join(__dirname, "..", "..", "public", "themes"), (err, builtInThemes) => {
|
||||||
if (err) {
|
if (err) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ function makeLocalThemeObject(css) {
|
|||||||
const themeName = css.slice(0, -4);
|
const themeName = css.slice(0, -4);
|
||||||
return {
|
return {
|
||||||
displayName: themeName.charAt(0).toUpperCase() + themeName.slice(1),
|
displayName: themeName.charAt(0).toUpperCase() + themeName.slice(1),
|
||||||
filename: path.join(__dirname, "..", "client", "themes", `${themeName}.css`),
|
filename: path.join(__dirname, "..", "..", "public", "themes", `${themeName}.css`),
|
||||||
name: themeName
|
name: themeName
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user