Skip to content

Commit ed94775

Browse files
fix: download IE checks (#2669)
1 parent 53bf803 commit ed94775

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/lemon-berries-hide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@react-pdf/renderer": patch
3+
---
4+
5+
fix: download IE checks

packages/renderer/src/dom/PDFDownloadLink.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const PDFDownloadLink = ({
2222
}
2323

2424
const handleDownloadIE = () => {
25-
if (window.navigator.msSaveBlob) {
25+
if (instance && window.navigator.msSaveBlob) {
2626
// IE
2727
window.navigator.msSaveBlob(instance.blob, fileName);
2828
}

0 commit comments

Comments
 (0)