mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-28 23:28:16 +02:00
fix passing null as Promise's onFullfilled (which is broken in Chrome 32)
This commit is contained in:
parent
dc5961d969
commit
4764c52b5b
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ var PartialEvaluator = (function PartialEvaluatorClosure() {
|
|||
var imgData = imageObj.createImageData(/* forceRGBA = */ false);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', imgData],
|
||||
[imgData.data.buffer]);
|
||||
}).then(null, function (reason) {
|
||||
}).then(undefined, function (reason) {
|
||||
warn('Unable to decode image: ' + reason);
|
||||
self.handler.send('obj', [objId, self.pageIndex, 'Image', null]);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue