in Electron, is there a way to detected the element that the context menu is being clicked on?
menu.append(new MenuItem({ label: 'Automate',visible : ?? }))
I want to enable this menuItem only when it is being clicked on a div with #file as the id.