mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 07:08:08 +02:00
Don't create Image object in JpegStream
This commit is contained in:
parent
90e2546ea3
commit
be73cb4f42
1 changed files with 0 additions and 7 deletions
7
pdf.js
7
pdf.js
|
@ -963,13 +963,6 @@ var JpegStream = (function jpegStream() {
|
|||
if (isAdobeImage(bytes))
|
||||
bytes = fixAdobeImage(bytes);
|
||||
|
||||
// create DOM image
|
||||
var img = new Image();
|
||||
img.onload = (function jpegStreamOnload() {
|
||||
this.loaded = true;
|
||||
if (this.onLoad)
|
||||
this.onLoad();
|
||||
}).bind(this);
|
||||
this.src = bytesToString(bytes);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue