mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-22 08:26:16 -04:00
fix #377: add favicon url as optional settings.json parameter
This commit is contained in:
parent
0fa25264bc
commit
c92b5283fd
6 changed files with 14 additions and 5 deletions
|
@ -24,8 +24,8 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
|||
});
|
||||
});
|
||||
|
||||
//serve favicon.ico
|
||||
args.app.get('/favicon.ico', function(req, res)
|
||||
//serve favicon.ico from all path levels
|
||||
args.app.get( /\/favicon.ico$/, function(req, res)
|
||||
{
|
||||
var filePath = path.normalize(__dirname + "/../../../static/custom/favicon.ico");
|
||||
res.sendfile(filePath, function(err)
|
||||
|
|
|
@ -34,6 +34,11 @@ exports.root = path.normalize(path.join(npm.dir, ".."));
|
|||
*/
|
||||
exports.title = "Etherpad Lite";
|
||||
|
||||
/**
|
||||
* The app favicon fully specified url, visible e.g. in the browser window
|
||||
*/
|
||||
exports.favicon = "favicon.ico";
|
||||
|
||||
/**
|
||||
* The IP ep-lite should listen to
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue