IpcRenderer undefined



I have a problem with my 1.6.2 electron app.
I’m trying to include ipcRenderer like this :

var electron = require(‘electron’);
var ipcMain = electron.ipcMain ;
var ipcRenderer = electron.ipcRenderer;

But ipcRenderer seems to be undefined. IpcMain is OK.

Is it normal?
How to include it efficiently?

Thank you very much


ipcRenderer is only available in a renderer process, ipcMain is only available in the main process.


Ok thank you, got it