Browse Source

Add Blob Support, closes #313

pull/314/head
Blune 6 years ago
parent
commit
ba99279eef
  1. 2
      src/browser/index.js

2
src/browser/index.js

@ -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) => { return new Promise((res) => {
readFromBlobOrFile(image, res); readFromBlobOrFile(image, res);
}); });

Loading…
Cancel
Save