yes kind of a duplicate but that code no longer works with my case.
So I'm building a photo viewer, and I want to be able to view files when an image file has been set to open as default with my program to open it, but I also have made custom window controls, it has images of course, addition to that the script listed at Opening files with electron messes up those images by reading them as the data sent from main.js
and it messes things up
An image of how it looks when the app loads
if anyone could find out a work around that'll fix this it would be very appreciated, thanks.