I'm trying to save canvas as image.
Everything works fine, but I get a warning message in the browser: "Resource interpreted as Document but transferred with MIME type image/octet-stream ..."
I use the following code:
let img = canvas
.toDataURL("image/png")
.replace("image/png", "image/octet-stream");
window.location.href = img;
Is it possible to make the browser not give this warning?