server: file structure fix
This commit is contained in:
parent
51f46b8034
commit
fb6c2897bb
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ class Theme extends EventEmitter {
|
|||
|
||||
if (theme.includes('.css') && fs.existsSync(theme)) {
|
||||
this.files.push(theme)
|
||||
} 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 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('(ERROR) Theme not found: "' + theme)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue