Open caiofcm opened 6 years ago
Hi,
the error happend on line 504:
var encoder = new FileReader();
encoder.onloadend = function () {
var content = encoder.result.split(/,/)[1]; // line 504
resolve(content);
};
encoder.readAsDataURL(request.response);
Therefore it seems that the FileReader-object returns just null which shouldn't be the case at all, see MDN's documentation. Maybe it s due to some problem with the async-code, but I would rather assume that's a small bug - Canary is not without reason a development version. But it's weird that such a bug is included after all :/
From your link I understood it can return null (the result attribute) . Thank you for your reply.
Hi,
I am using the package for the first time and when applying the simple sample from README:
I am getting the error when using Chrome Canary (Version 66.0.3355.4 (Official Build) canary (64-bit)) - the error is kinda unpredictable, some times it shows the error and outputs the image to the document:
When running in Chrome Version 64.0.3282.167 (Official Build) (64-bit) everything goes OK.
Thank you