fix themes

This commit is contained in:
vapormusic 2022-02-21 12:42:06 +07:00
parent 4b48917c37
commit eb60f46493

View file

@ -251,7 +251,7 @@ export class BrowserWindow {
}) })
app.get("/themes/:theme", (req, res) => { app.get("/themes/:theme", (req, res) => {
const theme = req.params.theme.toLowerCase(); const theme = req.params.theme;
const themePath = join(utils.getPath('srcPath'), "./renderer/themes/", theme); const themePath = join(utils.getPath('srcPath'), "./renderer/themes/", theme);
const userThemePath = join(utils.getPath('themes'), theme); const userThemePath = join(utils.getPath('themes'), theme);
if (existsSync(userThemePath)) { if (existsSync(userThemePath)) {