Last active
April 22, 2016 22:18
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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