mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-26 21:01:28 +00:00
fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER
This commit is contained in:
parent
80e2c9602e
commit
ad2bf18ab4
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ server.get("/css/themes/:name", async (req, res) => {
|
|||
res.send("Theme must be a css file");
|
||||
}
|
||||
|
||||
const customTheme = path.resolve(`./${extraThemesFolder}/${theme}`);
|
||||
const customTheme = path.resolve(`${extraThemesFolder}/${theme}`);
|
||||
if (existsSync(customTheme)) {
|
||||
res.sendFile(customTheme);
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue