Fix local theme folder

This commit is contained in:
Pavel Djundik 2017-11-12 21:11:08 +02:00
parent 1ead5fd53a
commit e5cded0ad6

View file

@ -12,7 +12,7 @@ module.exports = {
getFilename: getFilename
};
fs.readdir("client/themes/", (err, builtInThemes) => {
fs.readdir(path.join(__dirname, "..", "..", "public", "themes"), (err, builtInThemes) => {
if (err) {
return;
}
@ -49,7 +49,7 @@ function makeLocalThemeObject(css) {
const themeName = css.slice(0, -4);
return {
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
};
}