IpcRenderer undefined


#1

Hello,

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


#2

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


#3

Ok thank you, got it