mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix pdf worker
This commit is contained in:
committed by
Eugenio Romano
parent
1ec85435ba
commit
f5e264d0fc
@@ -23,7 +23,7 @@ import { ContentDirectiveModule, ContentMetadataModule, VersionManagerModule } f
|
||||
import { BlobPreviewComponent } from './blob-preview.component';
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.min.js';
|
||||
pdfjsLib.PDFJS.disableFontFace = true;
|
||||
|
||||
const routes: Routes = [
|
||||
|
@@ -23,7 +23,7 @@ import { ContentDirectiveModule, VersionManagerModule, ContentMetadataModule } f
|
||||
import { FileViewComponent } from './file-view.component';
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.min.js';
|
||||
pdfjsLib.PDFJS.disableFontFace = true;
|
||||
|
||||
const routes: Routes = [
|
||||
|
Reference in New Issue
Block a user