mirror of
https://github.com/maptiler/tileserver-gl.git
synced 2024-11-10 02:44:43 +03:00
Avoid swallowing rejected font loading promise
This commit is contained in:
parent
cd1f5fd04a
commit
c060dedf20
@ -740,9 +740,8 @@ module.exports = function(options, repo, params, id, dataResolver) {
|
||||
return res.send(info);
|
||||
});
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
Promise.all([fontListingPromise, renderersReadyPromise]).then(function() {
|
||||
resolve(app);
|
||||
});
|
||||
return Promise.all([fontListingPromise, renderersReadyPromise]).then(function() {
|
||||
return app;
|
||||
});
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user