Browse Source

Merge pull request #314 from TheBlune/master

Add Blob Support, closes #313
pull/322/head
jeromewu 6 years ago committed by GitHub
parent
commit
f655fbbacd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/browser/index.js

2
src/browser/index.js

@ -73,7 +73,7 @@ const loadImage = (image) => { @@ -73,7 +73,7 @@ const loadImage = (image) => {
});
}
}
if (check.instance(image, File)) {
if (check.instance(image, File) || check.instance(image, Blob)) {
return new Promise((res) => {
readFromBlobOrFile(image, res);
});

Loading…
Cancel
Save