browser-image-compression
browser-image-compression copied to clipboard
fix: reject Promises with Error objects
Addresses #211.
Certain browsers (I've observed it in DuckDuckGo Mobile 5) will throw an error if a Promise is rejected with a non-Error object. HTMLElements call onerror with an Event subclass argument, not an error object, so this is causing some noise and losing context for debugging.
Any chance to get this merged ? I'm experiencing the same issue mentioned in #211