ipcRenderer is undefined in preload.js · Issue #3577 · electron/electron

const remote = require('electron').remote; const BrowserWindow = remote.BrowserWindow; const win = new BrowserWindow({ width: 300, height: 300, 'web-preferences': { 'preload':...