Fix lint warning + turn off worker support
This commit is contained in:
		
							parent
							
								
									51d4a17232
								
							
						
					
					
						commit
						50fe4f55e2
					
				| @ -7,7 +7,7 @@ var globalScope = (typeof window === 'undefined') ? this : window; | ||||
| 
 | ||||
| var ERRORS = 0, WARNINGS = 1, TODOS = 5; | ||||
| var verbosity = WARNINGS; | ||||
| var useWorker = true; | ||||
| var useWorker = false; | ||||
| 
 | ||||
| // The global PDFJS object exposes the API
 | ||||
| // In production, it will be declared outside a global wrapper
 | ||||
|  | ||||
| @ -3,7 +3,7 @@ | ||||
| 
 | ||||
| 'use strict'; | ||||
| 
 | ||||
| this.onmessage = function(evt) { | ||||
| function onMessageLoader(evt) { | ||||
|   // Reset the `onmessage` function as it was only set to call
 | ||||
|   // this function the first time a message is passed to the worker
 | ||||
|   // but shouldn't get called anytime afterwards.
 | ||||
| @ -47,4 +47,6 @@ this.onmessage = function(evt) { | ||||
|   for (var i = 0; i < files.length; i++) { | ||||
|     importScripts(dir + files[i]); | ||||
|   } | ||||
| }.bind(this); | ||||
| } | ||||
| 
 | ||||
| this.onmessage = onMessageLoader.bind(this); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user