tesseract.js
tesseract.js copied to clipboard
Fix loadImage when the type is Blob
For Blob doesn't have a name
property natively, it not set explicitly, it will throw an error Cannot read property 'endsWith' of undefined
So I am going to check the type of Blob, and this change is compatible if someone set name used old version.
Thanks for flagging this. Closing as the problematic code was removed entirely in the latest version (v3).