Skip to content

Commit

Permalink
Making sure that data actually is emtpy. A file in a Zip may contain …
Browse files Browse the repository at this point in the history
…nothing and be empty string.
  • Loading branch information
augustl committed Feb 6, 2010
1 parent 716b9fc commit c9d1098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-unzip.js
Expand Up @@ -13,7 +13,7 @@

this.entries = [];
var e = new JSUnzip.ZipEntry(this.fileContents);
while (e.data) {
while (typeof(e.data) === "string") {
this.entries.push(e);
e = new JSUnzip.ZipEntry(this.fileContents);
}
Expand Down

0 comments on commit c9d1098

Please sign in to comment.