Skip to content

Commit

Permalink
fix #44
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxEtMoritz committed Mar 13, 2024
1 parent 90fa849 commit d905af3
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 d905af3

Please sign in to comment.