server: if a theme is used, attempt to resolve image urls against the theme file's location

This commit is contained in:
bordun 2020-11-22 12:15:24 +01:00
parent 47d7e2c82d
commit 5cdb288cbc
3 changed files with 18 additions and 12 deletions

View file

@ -36,7 +36,7 @@ class Theme {
}
}
if (!this.files.length) {
if (this.files.length) {
this.watcher = chokidar.watch(this.files, {awaitWriteFinish: {stabilityThreshold: 200}}).on('change', ()=>{
if (!ipc) ipc = require('./server').ipc