I have a rendering process open a modal window
import { remote } from 'electron';
let currentWindow = remote.getCurrentWindow();
let modalWindow = new BrowserWindow({width:800, heigh:500, parent:currentWindow});
modalWindow.loadURL('views/second.html');
How can I pass a message from the modalWindow
back to its parent?