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.
9 lines
270 B
9 lines
270 B
|
5 years ago
|
importScripts('//unpkg.com/xlsx/dist/xlsx.full.min.js');
|
||
|
|
postMessage({t:'ready'});
|
||
|
|
onmessage = function(evt) {
|
||
|
|
var v;
|
||
|
|
try { v = XLSX.read(evt.data.d, evt.data.b); }
|
||
|
|
catch(e) { postMessage({t:"e",d:e.stack}); }
|
||
|
|
postMessage({t:evt.data.t, d:JSON.stringify(v)});
|
||
|
|
}
|