Improve viewer

This commit is contained in:
Peter Maquiran
2021-10-09 15:58:54 +01:00
parent a1cbbe3805
commit 58ee4f0a28
2 changed files with 4 additions and 2 deletions
@@ -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()
})
}