mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-30 01:01:14 +00:00
fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER
This commit is contained in:
parent
80e2c9602e
commit
ad2bf18ab4
|
@ -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