Removing console.log in the server about onlyoffice fonts

This commit is contained in:
yflory 2019-01-24 16:23:07 +01:00
parent 4946a44e33
commit dbe8571a40
1 changed files with 0 additions and 3 deletions

View File

@ -221,10 +221,7 @@ var FONT_NAME_MAP = {};
/* Currently not active, but might be necessary */
app.use("/common/onlyoffice/fonts/odttf/:name", function (req, res) {
var name = req.params.name.replace(/\.js$/, '').toLowerCase();
console.log(name);
if (!FONT_NAME_MAP[name]) {
console.log(name);
console.log(FONT_NAME_MAP[name]);
res.status(400).send('No such font');
return;
}