Skip to content

Commit 9326d2a

Browse files
committed
Check if blob argument is a Blob instance.
1 parent 3ed1e0a commit 9326d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/load-image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
loadImage.fetchBlob(
3838
file,
3939
function(blob) {
40-
if (blob) {
40+
if (blob && loadImage.isInstanceOf('Blob', blob)) {
4141
// eslint-disable-next-line no-param-reassign
4242
file = blob
4343
url = loadImage.createObjectURL(file)

0 commit comments

Comments
 (0)