Avoid swallowing rejected font loading promise

This commit is contained in:
Tim Schaub 2017-10-23 09:52:39 -06:00
parent cd1f5fd04a
commit c060dedf20

View file

@ -740,9 +740,8 @@ module.exports = function(options, repo, params, id, dataResolver) {
return res.send(info); return res.send(info);
}); });
return new Promise(function(resolve, reject) { return Promise.all([fontListingPromise, renderersReadyPromise]).then(function() {
Promise.all([fontListingPromise, renderersReadyPromise]).then(function() { return app;
resolve(app);
});
}); });
}; };