Skip to content

Commit

Permalink
fix: isBufferLike in load-image.js (#536)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambo-panda authored Aug 17, 2022
1 parent 5f9c8f9 commit c6ad306
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions load-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ function createImage(src, alt) {

function isBufferLike(src) {
return (
(src && src.type === 'Buffer') ||
Array.isArray(src) ||
src instanceof ArrayBuffer ||
src instanceof SharedArrayBuffer ||
Expand Down

0 comments on commit c6ad306

Please sign in to comment.