From: MichaƂ <30625554+n3oney@users.noreply.github.com> Date: Fri, 16 Jun 2023 16:32:21 +0000 (+0200) Subject: fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=ad2bf18ab46f758cba9e262af286cb9decf91fe6;p=lemmy-ui.git fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 3a12ad7..7fca89f 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -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 {