1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #9260 from Snuffleupagus/rm-JpegStream.getBytes

Attempt to remove the special `JpegStream.getBytes` method and utilize the regular `DecodeStream` one instead
This commit is contained in:
Tim van der Meij 2017-12-10 16:50:50 +01:00 committed by GitHub
commit 095c63cc25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,11 +100,6 @@ let JpegStream = (function JpegStreamClosure() {
this.eof = true;
};
JpegStream.prototype.getBytes = function(length) {
this.readBlock();
return this.buffer;
};
JpegStream.prototype.getIR = function(forceDataSchema = false) {
return createObjectURL(this.bytes, 'image/jpeg', forceDataSchema);
};