Closed
Description
Hello,
I am trying to convert canvas to Image using HTML2Canvas and then add it to the report but it is ending up with an error as below on line
Error Message in Console:
imgData is not defined
Error at line 514
As per the code line contains the following if condition.
if (imgData.charCodeAt(0) === 0x89 &&
I have attached the file here that is generated by HTML2Canvas in png format.
I am not sure on this code part but possibly it seems that CharCodeAt(0) condition isnt getting validated for PNG file Format.