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:
commit
095c63cc25
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue