File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
extensions/firefox/components Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ function PdfDataListener(length) {
131
131
}
132
132
133
133
PdfDataListener .prototype = {
134
- set : function PdfDataListener_set (chunk , offset ) {
134
+ append : function PdfDataListener_append (chunk ) {
135
135
var willBeLoaded = this .loaded + chunk .length ;
136
136
if (this .length >= 0 && this .length < willBeLoaded ) {
137
137
this .length = -1 ; // reset the length, server is giving incorrect one
@@ -462,7 +462,7 @@ PdfStreamConverter.prototype = {
462
462
463
463
var binaryStream = this .binaryStream ;
464
464
binaryStream .setInputStream (aInputStream );
465
- this .dataListener .set (binaryStream .readByteArray (aCount ), aOffset );
465
+ this .dataListener .append (binaryStream .readByteArray (aCount ));
466
466
},
467
467
468
468
// nsIRequestObserver::onStartRequest
You can’t perform that action at this time.
0 commit comments