mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
Timeslider Javascript is now minified too
This commit is contained in:
parent
2e163f2924
commit
56ab112fa3
3 changed files with 40 additions and 34 deletions
|
@ -87,19 +87,19 @@ async.waterfall([
|
|||
});
|
||||
|
||||
//serve minified files
|
||||
app.get('/minified/:id', function(req, res)
|
||||
app.get('/minified/:id', function(req, res, next)
|
||||
{
|
||||
res.header("Server", serverName);
|
||||
|
||||
var id = req.params.id;
|
||||
|
||||
if(id == "pad.js")
|
||||
if(id == "pad.js" || id == "timeslider.js")
|
||||
{
|
||||
minify.padJS(req,res);
|
||||
minify.minifyJS(req,res,id);
|
||||
}
|
||||
else
|
||||
{
|
||||
res.send('404 - Not Found', 404);
|
||||
next();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue