Skip to content

Commit 19c62f5

Browse files
committed
Removes offset and renames set to append
1 parent aa00fe4 commit 19c62f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/firefox/components/PdfStreamConverter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function PdfDataListener(length) {
131131
}
132132

133133
PdfDataListener.prototype = {
134-
set: function PdfDataListener_set(chunk, offset) {
134+
append: function PdfDataListener_append(chunk) {
135135
var willBeLoaded = this.loaded + chunk.length;
136136
if (this.length >= 0 && this.length < willBeLoaded) {
137137
this.length = -1; // reset the length, server is giving incorrect one
@@ -462,7 +462,7 @@ PdfStreamConverter.prototype = {
462462

463463
var binaryStream = this.binaryStream;
464464
binaryStream.setInputStream(aInputStream);
465-
this.dataListener.set(binaryStream.readByteArray(aCount), aOffset);
465+
this.dataListener.append(binaryStream.readByteArray(aCount));
466466
},
467467

468468
// nsIRequestObserver::onStartRequest

0 commit comments

Comments
 (0)