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.
		
		
		
		
		
			
		
			
				
					15 lines
				
				432 B
			
		
		
			
		
	
	
					15 lines
				
				432 B
			| 
											2 years 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('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}); } | ||
|  | }; |