Webview event update-target-url get image


#1

Hi, I have Webview in my Electron app, and I have context menu. In this context menu I want to make possibility to save image as like in most browsers. But there’s a problem: event update-target-url is not returning image link. So how can I implement save image as option in my context menu?

I have two variables:
linkToOpenInNewTab
and
imageToSave

How to distinguish these variables in one event?