Skip to content

Commit

Permalink
xlsb browser fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SheetJSDev committed Feb 4, 2014
1 parent a96d896 commit 242d5c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bits/35_ziputils.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function getdata(data) {
if(!data) return null;
if(data.data) return data.data;
if(data.data) return data.name.substr(-4) !== ".bin" ? data.data : data.data.split("").map(function(x) { return x.charCodeAt(0); });
if(data.asNodeBuffer && typeof Buffer !== 'undefined' && data.name.substr(-4)===".bin") return data.asNodeBuffer();
if(data.asBinary && data.name.substr(-4) !== ".bin") return data.asBinary();
if(data._data && data._data.getContent) {
Expand Down
2 changes: 1 addition & 1 deletion xlsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ function _getchar(x) { return String.fromCharCode(x); }

function getdata(data) {
if(!data) return null;
if(data.data) return data.data;
if(data.data) return data.name.substr(-4) !== ".bin" ? data.data : data.data.split("").map(function(x) { return x.charCodeAt(0); });
if(data.asNodeBuffer && typeof Buffer !== 'undefined' && data.name.substr(-4)===".bin") return data.asNodeBuffer();
if(data.asBinary && data.name.substr(-4) !== ".bin") return data.asBinary();
if(data._data && data._data.getContent) {
Expand Down

0 comments on commit 242d5c6

Please sign in to comment.