Interacting with remote webpage


hey guys,
I want remote webpage to send url string to electron main process of image that electron will then save to local filesystem.

I would load the webpage in webview and do messaging, but the webpage itself has webview and nested webview doesn’t work in electron.

I dont want to do api that electron dumb checks up on every few mins… I thought about creating object with all renderer communication functions and calling them from page but not sure if/how that would work.

How can i go about solving this problem?

thanks a lot!