diff --git a/src/app/modals/view-document/view-document.page.html b/src/app/modals/view-document/view-document.page.html index 73a70ba92..a16d98c43 100644 --- a/src/app/modals/view-document/view-document.page.html +++ b/src/app/modals/view-document/view-document.page.html @@ -23,7 +23,7 @@
- +
diff --git a/src/app/modals/view-document/view-document.page.ts b/src/app/modals/view-document/view-document.page.ts index d7f445bc1..eabad807b 100644 --- a/src/app/modals/view-document/view-document.page.ts +++ b/src/app/modals/view-document/view-document.page.ts @@ -46,9 +46,11 @@ export class ViewDocumentPage implements OnInit { ngOnInit() { - this.processes.GetViewer(this.docId, this.applicationId).subscribe(res=>{ + this.processes.GetViewer(this.docId, this.applicationId).subscribe(res=> { const link: string = res this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link); + }, ()=>{ + this.close() }) }