mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 09:45:42 +02:00
Fix sending image data to main thread
This commit is contained in:
parent
78129970c6
commit
37ee56a705
3 changed files with 8 additions and 6 deletions
|
@ -12,8 +12,11 @@ var JpegStreamProxy = (function() {
|
|||
|
||||
// Tell the main thread to create an image.
|
||||
postMessage({
|
||||
action: jpeg_stream,
|
||||
data: bytesToString(bytes)
|
||||
action: "jpeg_stream",
|
||||
data: {
|
||||
id: this.id,
|
||||
raw: bytesToString(bytes)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue