Merge pull request #1706 from thelounge/xpaw/fix-local-themes
Fix local theme folder
This commit is contained in:
commit
6af282e6e8
@ -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
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user