mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Fix: respect baseURI for pdfjs worker URL (#4865)
This commit is contained in:
		| @@ -33,8 +33,6 @@ export class AppComponent implements OnInit, OnDestroy { | ||||
|     private renderer: Renderer2, | ||||
|     private permissionsService: PermissionsService | ||||
|   ) { | ||||
|     let anyWindow = window as any | ||||
|     anyWindow.pdfWorkerSrc = 'assets/js/pdf.worker.min.js' | ||||
|     this.settings.updateAppearanceSettings() | ||||
|   } | ||||
|  | ||||
|   | ||||
| @@ -231,7 +231,7 @@ export class PdfViewerComponent | ||||
|     private element: ElementRef<HTMLElement>, | ||||
|     private ngZone: NgZone | ||||
|   ) { | ||||
|     PDFJS.GlobalWorkerOptions['workerSrc'] = '/assets/js/pdf.worker.min.js' | ||||
|     PDFJS.GlobalWorkerOptions['workerSrc'] = 'assets/js/pdf.worker.min.js' | ||||
|   } | ||||
|  | ||||
|   ngAfterViewChecked(): void { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 shamoon
					shamoon