diff --git a/lib/GUI/index.hbs b/lib/GUI/index.hbs index cb9fc52d7..ff47af2f0 100644 --- a/lib/GUI/index.hbs +++ b/lib/GUI/index.hbs @@ -11,9 +11,7 @@
- {{#if logo}} - - {{/if}} +
diff --git a/lib/index.js b/lib/index.js index b3b238f28..286f4ee27 100644 --- a/lib/index.js +++ b/lib/index.js @@ -138,8 +138,7 @@ module.exports = function(config_hash) { res.send(template({ name: config.title || "Sinopia", packages: packages, - baseUrl: config.root || req.protocol + '://' + req.get('host') + '/', - logo: config.logo + baseUrl: config.root || req.protocol + '://' + req.get('host') + '/' })); }); }); @@ -247,13 +246,7 @@ module.exports = function(config_hash) { }); app.get('/-/logo', function(req, res, next) { - if(config.logo) { - res.sendfile(config.logo); - } - else { - res.status(404); - res.send("File Not Found"); - } + res.sendfile(config.logo ? config.logo : __dirname + "/static/logo.png"); }); // Search diff --git a/lib/static/logo.png b/lib/static/logo.png new file mode 100644 index 000000000..c26b6c0ff Binary files /dev/null and b/lib/static/logo.png differ