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