I've written a small sketch in p5.js that finishes by saving a snapshot of the canvas using the saveCanvas()
method.
When I have the console open, things happen exactly as I would expect (a file with the name I provide is saved to the Downloads folder). However, if I close the developer console, I see "download, Failed - Network error."
This issue only seems to happen in Chrome. I have been able to run the sketch successfully using Safari and Firefox with no consoles open.
I have already removed any reference to console
in my code (such as console.log()
).