Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option to reject when image loading error has occurred. #2425

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

Conversation

sasanquaneuf
Copy link

Summary

This PR fixes/implements the following bugs/features

  • [o] Feature 1 add option to reject when image loading error has occurred.

related to #2424

The original bug is: Safari (iOS/Mac) fail to write image to canvas sometimes.
However, I had no idea to fix this bug. And I found that when I re-called html2canvas, then image was displayed correctly.
So I want to know the output was failed or not, as reject of the promise.

Test plan (required)

Sorry, I had no good idea for the test.
But this commit is not breaking any test.

Code formatting

Please make sure that code adheres to the project code formatting. Running npm run format will automatically format your code correctly.

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

Successfully merging this pull request may close these issues.

1 participant