diff --git a/src-ui/angular.json b/src-ui/angular.json index ce2dd82f7..db8c66b19 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -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" diff --git a/src-ui/src/app/app.component.ts b/src-ui/src/app/app.component.ts index 9cd9fb3ec..1c2001043 100644 --- a/src-ui/src/app/app.component.ts +++ b/src-ui/src/app/app.component.ts @@ -10,6 +10,7 @@ export class AppComponent { constructor (appViewService: AppViewService) { appViewService.updateDarkModeSettings() + (window as any).pdfWorkerSrc = '/assets/js/pdf.worker.min.js'; }