diff options
Diffstat (limited to 'lib/zipfile.js')
| -rw-r--r-- | lib/zipfile.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/zipfile.js b/lib/zipfile.js index 85dde81..2129193 100644 --- a/lib/zipfile.js +++ b/lib/zipfile.js @@ -28,15 +28,15 @@ function openArrayBuffer(arrayBuffer) { zipFile.file(name, contents); } - function toBuffer() { - return zipFile.generateAsync({type: "nodebuffer"}); + function toArrayBuffer() { + return zipFile.generateAsync({type: "arraybuffer"}); } return { exists: exists, read: read, write: write, - toBuffer: toBuffer + toArrayBuffer: toArrayBuffer }; }); } |
