You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
459 B
16 lines
459 B
2 months ago
|
/* xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
||
|
importScripts('dist/shim.min.js');
|
||
|
/* uncomment the next line for encoding support */
|
||
|
importScripts('dist/cpexcel.js');
|
||
|
importScripts('jszip.js');
|
||
|
importScripts('xlsx.js');
|
||
|
postMessage({t:"ready"});
|
||
|
|
||
|
onmessage = function (evt) {
|
||
|
var v;
|
||
|
try {
|
||
|
v = XLSX.read(evt.data.d, {type: evt.data.b});
|
||
|
postMessage({t:"xlsx", d:JSON.stringify(v)});
|
||
|
} catch(e) { postMessage({t:"e",d:e.stack||e}); }
|
||
|
};
|