Serve fonts only if serving some styles
This commit is contained in:
parent
d742672238
commit
946cb2ca5f
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ module.exports = function(opts, callback) {
|
|||
}
|
||||
});
|
||||
|
||||
if (Object.keys(serving.styles).length > 0) {
|
||||
// serve fonts only if serving some styles
|
||||
app.use('/', serve_font('glyphs', serving.fonts));
|
||||
}
|
||||
|
||||
//TODO: cors
|
||||
|
||||
|
|
Loading…
Reference in a new issue