diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-08-16 16:38:33 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-08-16 16:38:33 +0100 |
| commit | 42ea88fd99174ec0b86a71d5cd18244ea22dcadd (patch) | |
| tree | d254228c008a49a080ba64139844777bcf744ef5 /browser | |
| parent | 4236b58ed1e5448b0ce43b87bf6b5df585db2a32 (diff) | |
Fix: browser version of openZip does not always return a promise
Diffstat (limited to 'browser')
| -rw-r--r-- | browser/unzip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/unzip.js b/browser/unzip.js index e7ae8b6..33772ec 100644 --- a/browser/unzip.js +++ b/browser/unzip.js @@ -5,7 +5,7 @@ exports.openZip = openZip; function openZip(options) { if (options.arrayBuffer) { - return zipfile.openArrayBuffer(options.arrayBuffer); + return promises.resolve(zipfile.openArrayBuffer(options.arrayBuffer)); } else { return promises.reject(new Error("Could not find file in options")); } |
