mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
AAE-30877 fix failing worker load
This commit is contained in:
parent
bc9ff872a3
commit
635777f0f0
@ -213,7 +213,7 @@ export class PdfViewerComponent implements OnChanges, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
executePdf(pdfOptions: any) {
|
executePdf(pdfOptions: any) {
|
||||||
pdfjsLib.GlobalWorkerOptions.workerSrc = 'assets/pdfjs/pdf.worker.mjs';
|
pdfjsLib.GlobalWorkerOptions.workerSrc = 'pdf.worker.min.mjs';
|
||||||
//eslint-disable-next-line
|
//eslint-disable-next-line
|
||||||
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);
|
console.log('Worker', pdfjsLib.GlobalWorkerOptions.workerSrc);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user