]> Untitled Git - lemmy-ui.git/commitdiff
Merge branch 'main' into patch-1
authorn3oney <neo@neoney.dev>
Tue, 20 Jun 2023 22:37:48 +0000 (00:37 +0200)
committern3oney <neo@neoney.dev>
Tue, 20 Jun 2023 22:40:25 +0000 (00:40 +0200)
src/server/handlers/theme-handler.ts

index 9f1046d7f5dff41c4a0305254cf5286ee34c14cb..b107d8542461732a5bf6b78ae6e57b11d0733ad3 100644 (file)
@@ -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);