Avoid swallowing rejected font listing promise
This commit is contained in:
parent
5ed632c229
commit
650718e0f6
1 changed files with 2 additions and 4 deletions
|
@ -54,9 +54,7 @@ module.exports = function(options, allowedFonts) {
|
|||
);
|
||||
});
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
fontListingPromise.then(function() {
|
||||
resolve(app);
|
||||
});
|
||||
return fontListingPromise.then(function() {
|
||||
return app;
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue