fix themes
This commit is contained in:
parent
4b48917c37
commit
eb60f46493
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue