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

canvas.toBlob does not exist on edge. #23

Closed
Losses opened this issue Oct 4, 2017 · 0 comments
Closed

canvas.toBlob does not exist on edge. #23

Losses opened this issue Oct 4, 2017 · 0 comments
Assignees
Labels

Comments

@Losses
Copy link

Losses commented Oct 4, 2017

On edge, canvas.toBlob does not exist, but there's a similar (but not same) method named canvas.msToBlob.

To erase the error, I wrote some dirty workaround:

HTMLCanvasElement.prototype.toBlob = function(callback) {
  callback(this.msToBlob());
}

but it's not a good solution, maybe we need a better way to deal with it?

@myxvisual myxvisual self-assigned this Oct 4, 2017
@myxvisual myxvisual added the bug label Oct 4, 2017
@myxvisual myxvisual reopened this Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants