Skip to content

Commit

Permalink
fix: Blob might be undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
mojoaxel committed Jan 27, 2024
1 parent 42b0302 commit 268712f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PDFMergerBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class PDFMergerBase {
}

// see https://developer.mozilla.org/en-US/docs/Web/API/Blob
if (input instanceof Blob) {
if (Blob && input instanceof Blob) {
const aBuffer = await input.arrayBuffer()
return new Uint8Array(aBuffer)
}
Expand Down

0 comments on commit 268712f

Please sign in to comment.