mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix pdf setup
This commit is contained in:
@@ -9,6 +9,9 @@ import 'ng2-charts';
|
|||||||
import 'ng2-3d-editor';
|
import 'ng2-3d-editor';
|
||||||
import 'three';
|
import 'three';
|
||||||
|
|
||||||
|
import pdfjsLib from 'pdfjs-dist';
|
||||||
|
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.js';
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user