Merge pull request #1706 from thelounge/xpaw/fix-local-themes

Fix local theme folder
This commit is contained in:
Jérémie Astori 2017-11-12 14:24:21 -05:00 committed by GitHub
commit 6af282e6e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

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
};
}