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) {
|
return fontListingPromise.then(function() {
|
||||||
fontListingPromise.then(function() {
|
return app;
|
||||||
resolve(app);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue