package: move assets to "assets"

This commit is contained in:
bordun 2018-10-28 15:10:12 +01:00
parent e8b2a3fb99
commit d432969fb2
13 changed files with 16 additions and 16 deletions

View file

@ -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,

View file

@ -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))