Skip to content

Commit

Permalink
fix: download IE checks (#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
Finanzasparahippies authored Sep 22, 2024
1 parent 53bf803 commit ed94775
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lemon-berries-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@react-pdf/renderer": patch
---

fix: download IE checks
2 changes: 1 addition & 1 deletion packages/renderer/src/dom/PDFDownloadLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const PDFDownloadLink = ({
}

const handleDownloadIE = () => {
if (window.navigator.msSaveBlob) {
if (instance && window.navigator.msSaveBlob) {
// IE
window.navigator.msSaveBlob(instance.blob, fileName);
}
Expand Down

0 comments on commit ed94775

Please sign in to comment.