Serve fontstacks.json and possibly fonts even without any style

This commit is contained in:
Petr Sloup 2017-01-12 15:23:02 +01:00
parent 6d68c93871
commit b48f7edc1d

View file

@ -138,10 +138,7 @@ module.exports = function(opts, callback) {
}
});
if (Object.keys(serving.styles).length > 0) {
// serve fonts only if serving some styles
app.use('/', serve_font(options, serving.fonts));
}
app.use('/', serve_font(options, serving.fonts));
Object.keys(data).forEach(function(id) {
var item = data[id];