How to copy JS canvas content from one window to another?


Iā€™m seeking help to port one of my application to electron.
I need to copy the content of a canvas witch is rendered in window A to a second window B .

Here is a link that explain what i want to accomplish :

Thank you :slight_smile:


You could copy the canvas data to a string with toDataURL() and copy that to sessionStorage.someName
Then you can read it from there in another process (max 2.5 MB though)


You rules! it works thanx.