Remove ng2-pdf-viewer and use only native viewer

This commit is contained in:
Michael Shamoon
2021-02-24 11:26:39 -08:00
parent 5306d58991
commit 706b1f4622
8 changed files with 3 additions and 47 deletions

View File

@@ -70,10 +70,6 @@ export class DocumentCardSmallComponent implements OnInit {
)
}
get useNativePdfViewer(): boolean {
return this.settings.get(SETTINGS_KEYS.USE_NATIVE_PDF_VIEWER)
}
getContentType() {
return this.metadata?.has_archive_version ? 'application/pdf' : this.metadata?.original_mime_type
}