server: file structure fix

This commit is contained in:
jean-emmanuel 2025-09-13 16:02:03 +02:00
parent 51f46b8034
commit fb6c2897bb

View file

@ -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)
}