lint: update rules and fix errors
This commit is contained in:
parent
246807fac5
commit
b228331aa8
6 changed files with 7 additions and 9 deletions
|
|
@ -22,7 +22,7 @@ function nodeMode() {
|
|||
|
||||
}
|
||||
|
||||
if (process.title === 'node' || process.title === 'node.exe') {
|
||||
if (process.title === 'node' || process.title === 'node.exe') {
|
||||
|
||||
nodeMode()
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ express.get('*', function(req, res){
|
|||
res.send('')
|
||||
}
|
||||
} else if (/(assets|client)\//.test(req.path)){
|
||||
res.sendFile(path.resolve(__dirname + '/..' + req.path))
|
||||
res.sendFile(path.resolve(__dirname + '/..' + req.path))
|
||||
} else {
|
||||
res.sendFile(path.resolve(req.path))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue