diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-03-21 19:48:42 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-03-21 19:48:42 +0000 |
| commit | 3a7c7e0339417a7f9339fc7276ec92145c453006 (patch) | |
| tree | a677cbc9b95c5deebc8ceb0b78a70e29bcc4a501 | |
| parent | b8478d98969b2092ef1aab5ce605d1ff90e209e8 (diff) | |
Fix browser version of unzip
| -rw-r--r-- | browser/unzip.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/browser/unzip.js b/browser/unzip.js index 97fcdb1..7763bdd 100644 --- a/browser/unzip.js +++ b/browser/unzip.js @@ -1,4 +1,4 @@ -var q = require("q"); +var promises = require("../lib/promises"); exports.openZip = openZip; @@ -20,9 +20,9 @@ function openArrayBuffer(arrayBuffer) { var array = zipFile.file(name).asUint8Array(); var buffer = new Buffer(array); if (encoding) { - return q.when(buffer.toString(encoding)); + return promises.when(buffer.toString(encoding)); } else { - return q.when(buffer); + return promises.when(buffer); } } return { |
