Closed kevinkosterr closed 2 months ago
I find it. Add the default options and it will be normal to use. I will fix it in next version! Thank you !
@zxpsuper awesome. Perhaps it would be a good idea to reject the Promise for getImage()
whenever an issue occurs?
Same for getCanvas() in fact?
@zxpsuper awesome. Perhaps it would be a good idea to reject the Promise for
getImage()
whenever an issue occurs?
There is global error catching that you can use onError
to deal with it.
So I've just found out
toImage()
is deprecated, however when trying to switch togetImage()
the code never reaches the.then()
block. Thus, the promise never gets resolved.So given the example in the docs: