mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	self serve pdf.worker.min.js
This commit is contained in:
		| @@ -27,7 +27,11 @@ | ||||
| 						"assets": [ | ||||
| 							"src/favicon.ico", | ||||
| 							"src/assets", | ||||
| 							"src/manifest.webmanifest" | ||||
| 							"src/manifest.webmanifest", { | ||||
| 								"glob": "pdf.worker.min.js", | ||||
| 								"input": "node_modules/pdfjs-dist/build/", | ||||
| 								"output": "/assets/js/" | ||||
| 							} | ||||
| 						], | ||||
| 						"styles": [ | ||||
| 							"src/styles.scss" | ||||
|   | ||||
| @@ -6,8 +6,9 @@ import { Component } from '@angular/core'; | ||||
|   styleUrls: ['./app.component.scss'] | ||||
| }) | ||||
| export class AppComponent { | ||||
|    | ||||
|  | ||||
|   constructor () { | ||||
|     (window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js'; | ||||
|   } | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stefan
					Stefan