server: fix --theme

This commit is contained in:
bordun 2018-11-01 16:21:59 +01:00
parent 9c09853636
commit 4fad3d7c21
2 changed files with 3 additions and 2 deletions

View file

@ -3,6 +3,7 @@
## 0.39.2
- bug fixes
- regresssion: broken --theme option
- regression: missing 'edit parent' action in editor's context menu
## 0.39.1

View file

@ -24,8 +24,8 @@ class Theme {
if (theme.includes('.css') && fs.existsSync(theme)) {
this.files.push(theme)
} else if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../browser/themes/' + theme + '.css'))) {
this.files.push(path.resolve(__dirname + '/../browser/themes/' + theme + '.css'))
} else if (!theme.includes('.css') && fs.existsSync(path.resolve(__dirname + '/../assets/themes/' + theme + '.css'))) {
this.files.push(path.resolve(__dirname + '/../assets/themes/' + theme + '.css'))
} else {
console.error('Theme error: "' + theme + '" not found.')
}