fix lint error

This commit is contained in:
Alec Armbruster 2023-06-25 10:47:21 -04:00
parent d1cf01061b
commit 9938ac6ee4
No known key found for this signature in database
GPG key ID: 52BC7C84E960FD1B

View file

@ -17,15 +17,15 @@ export default async (req: Request, res: Response) => {
const customTheme = path.resolve(extraThemesFolder, theme);
if (existsSync(customTheme)) {
res.sendFile(customTheme);
return res.sendFile(customTheme);
} else {
const internalTheme = path.resolve(`./dist/assets/css/themes/${theme}`);
// If the theme doesn't exist, just send litely
if (existsSync(internalTheme)) {
res.sendFile(internalTheme);
return res.sendFile(internalTheme);
} else {
res.sendFile(path.resolve("./dist/assets/css/themes/litely.css"));
return res.sendFile(path.resolve("./dist/assets/css/themes/litely.css"));
}
}
};