server: fix --theme

This commit is contained in:
bordun 2018-11-01 16:21:59 +01:00
parent 5ec83b13cc
commit 8ce3be31c2
2 changed files with 3 additions and 2 deletions

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.')
}