forked from sheetjs/sheetjs
xlsb browser fix
This commit is contained in:
parent
a96d8964e2
commit
242d5c655e
@ -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) {
|
||||
|
2
xlsx.js
2
xlsx.js
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user