mirror of
https://github.com/thelounge/thelounge
synced 2024-11-23 12:33:07 +00:00
Fix local theme folder
This commit is contained in:
parent
1ead5fd53a
commit
e5cded0ad6
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue