Fix sending image data to main thread

This commit is contained in:
Julian Viereck 2011-06-23 14:36:45 +02:00
parent 78129970c6
commit 37ee56a705
3 changed files with 8 additions and 6 deletions

View file

@ -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)
}
});
}