mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
single place to init pdf viewer
This commit is contained in:
committed by
Eugenio Romano
parent
35bcd80106
commit
08e96dfa1f
@@ -22,10 +22,6 @@ import { CoreModule, InfoDrawerModule } from '@alfresco/adf-core';
|
||||
import { ContentDirectiveModule, ContentMetadataModule, VersionManagerModule } from '@alfresco/adf-content-services';
|
||||
import { BlobPreviewComponent } from './blob-preview.component';
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.min.js';
|
||||
pdfjsLib.PDFJS.disableFontFace = true;
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
|
@@ -22,10 +22,6 @@ import { CoreModule, InfoDrawerModule } from '@alfresco/adf-core';
|
||||
import { ContentDirectiveModule, VersionManagerModule, ContentMetadataModule } from '@alfresco/adf-content-services';
|
||||
import { FileViewComponent } from './file-view.component';
|
||||
|
||||
import * as pdfjsLib from 'pdfjs-dist';
|
||||
pdfjsLib.PDFJS.workerSrc = 'pdf.worker.min.js';
|
||||
pdfjsLib.PDFJS.disableFontFace = true;
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
|
Reference in New Issue
Block a user