package: move assets to "assets"
This commit is contained in:
parent
e8b2a3fb99
commit
d432969fb2
13 changed files with 16 additions and 16 deletions
|
|
@ -13,7 +13,7 @@ module.exports = function(options={}) {
|
|||
width: options.width || 800,
|
||||
height: options.height || 600,
|
||||
title: options.title || settings.read('appName'),
|
||||
icon: path.resolve(__dirname + '/../client/logo.png'),
|
||||
icon: path.resolve(__dirname + '/../assets/logo.png'),
|
||||
backgroundColor: options.color || theme.backgroundColor,
|
||||
type: options.type,
|
||||
fullscreen: options.fullscreen,
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ express.get('*', function(req, res){
|
|||
} else {
|
||||
res.send('')
|
||||
}
|
||||
} else if (req.path.indexOf('client/') != -1){
|
||||
} else if (req.path.indexOf('assets/') != -1){
|
||||
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