This commit is contained in:
Alex Kocharin 2014-11-16 16:38:01 +03:00
parent 637d51cba0
commit 972551e838
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
<meta charset="utf-8">
<title>{{ name }}</title>
<link rel="icon" type="image/ico" href="{{ baseUrl }}/-/static/favicon.png"/>
<link rel="icon" type="image/png" href="{{ baseUrl }}/-/static/favicon.png"/>
<link rel="stylesheet" type="text/css" href="{{ baseUrl }}/-/static/main.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>

View File

@ -42,7 +42,7 @@ module.exports = function(config, auth, storage) {
storage.get_local(function(err, packages) {
if (err) throw err // that function shouldn't produce any
next(template({
name: config.web.title || 'Sinopia',
name: config.web && config.web.title ? config.web.title : 'Sinopia',
packages: packages.filter(allow),
baseUrl: base,
username: req.remote_user.name,