Skip to content

Instantly share code, notes, and snippets.

@devStepsize
Last active April 22, 2016 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devStepsize/3deea7d0357ea1c419ab6fefc2347b3c to your computer and use it in GitHub Desktop.
Save devStepsize/3deea7d0357ea1c419ab6fefc2347b3c to your computer and use it in GitHub Desktop.
An example of receiving a message from the renderer process (in the main) for an electron app.
// In the main.js (main process)
ipcMain.on('hello from the webpage!', function(event, arg){
console.log('recieved!');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment