Skip to content
This repository has been archived by the owner on Feb 20, 2018. It is now read-only.

add Image.onerror handler so the returned promise gives more control #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

expntly
Copy link

@expntly expntly commented Aug 16, 2015

Stumbled upon a case on iOS 8.0 where Safari fails to create the BLOB URL (plenty of instances of such issue on Google). This change allows the client to handle such errors.

…to the caller

Stumbled upon a case on iOS 8.0 where Safari fails to create the BLOB URL (plenty of instances of such issue on Google).  This change allows the client to handle such errors.
@ropsu
Copy link
Contributor

ropsu commented Aug 16, 2015

@expntly, Thanks for the PR. This is a good enhancement! Could you still add a simple unit test case for the promise rejection, please?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants