Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix: use local pdf worker js (#6990)

shamoonfa7a5451db66
diff --git a/src-ui/src/app/app.component.ts b/src-ui/src/app/app.component.ts
index 7e8abdf34..c6de83cd1 100644
--- a/src-ui/src/app/app.component.ts
+++ b/src-ui/src/app/app.component.ts
@@ -35,6 +35,8 @@ export class AppComponent implements OnInit, OnDestroy {
private permissionsService: PermissionsService,
private hotKeyService: HotKeyService
) {
+ let anyWindow = window as any
+ anyWindow.pdfWorkerSrc = 'assets/js/pdf.worker.min.js'
this.settings.updateAppearanceSettings()
}