mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Merge pull request #1325 from n3oney/patch-1
fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER
This commit is contained in:
commit
cec22203c0
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ export default async (req: Request, res: Response) => {
|
|||
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);
|
||||
|
|
Loading…
Reference in a new issue