Add Blob Support, closes #313

master
Blune 5 years ago
parent 9a4f0b7eaa
commit ba99279eef
  1. 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