AAE-30877 fix failing worker load

This commit is contained in:
Wojciech Duda 2025-04-10 12:36:58 +02:00
parent bc9ff872a3
commit 635777f0f0

View File

@ -213,7 +213,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
}
executePdf(pdfOptions: any) {
pdfjsLib.GlobalWorkerOptions.workerSrc = 'assets/pdfjs/pdf.worker.mjs';
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdf.worker.min.mjs';
//eslint-disable-next-line
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);