Skip to content

Commit

Permalink
Merge pull request #250 from MaxEtMoritz/MaxEtMoritz/issue44
Browse files Browse the repository at this point in the history
change method of setting URL in iFrame
  • Loading branch information
codehippie1 authored May 18, 2024
2 parents 90fa849 + d905af3 commit 2384d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/ng2-pdfjs-viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ export class PdfJsViewerComponent implements OnInit, OnDestroy {
if (this.externalWindow) {
this.viewerTab.location.href = viewerUrl;
} else {
this.iframe.nativeElement.src = viewerUrl;
this.iframe.nativeElement.contentWindow.location.replace(viewerUrl);
}

// console.log(`
Expand Down

0 comments on commit 2384d67

Please sign in to comment.