xsheetjs/demos/rollup/xlsxworker.js

12 lines
327 B
JavaScript
Raw Normal View History

2017-06-08 06:19:11 +00:00
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
importScripts('rollup.min.js');
postMessage({t:"ready"});
onmessage = function (oEvent) {
var v;
try {
v = XLSX.read(oEvent.data.d, {type: oEvent.data.b});
2017-06-08 06:19:11 +00:00
postMessage({t:"xlsx", d:JSON.stringify(v)});
} catch(e) { postMessage({t:"e",d:e.stack||e}); }
2017-06-08 06:19:11 +00:00
};