forked from sheetjs/sheetjs
xlsb browser fix
This commit is contained in:
parent
37003e2b95
commit
952c350547
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