main: watch --theme paths and reload automatically

This commit is contained in:
jean-emmanuel 2018-02-07 10:28:22 +01:00
parent 6c34c71975
commit 65d28eae27
3 changed files with 43 additions and 15 deletions

View file

@ -17,7 +17,7 @@ express.get('*', function(req, res){
if (req.path.indexOf('theme.css') != -1) {
res.set('Content-Type', 'text/css');
if (settings.read('theme')) {
res.send(new Buffer(settings.read('theme')))
res.send(new Buffer(settings.read('theme').join('\n')))
} else {
res.send('')
}