From ba99279eef8b14d0ea76ac76695b86bfd9999815 Mon Sep 17 00:00:00 2001 From: Blune Date: Sun, 21 Jul 2019 19:26:50 +0200 Subject: [PATCH] Add Blob Support, closes #313 --- src/browser/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/index.js b/src/browser/index.js index 685d536..c9fd31b 100644 --- a/src/browser/index.js +++ b/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) => { readFromBlobOrFile(image, res); });