main: watch --theme paths and reload automatically
This commit is contained in:
parent
6c34c71975
commit
65d28eae27
3 changed files with 43 additions and 15 deletions
|
|
@ -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('')
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue