Created
June 16, 2020 18:23
-
-
Save imansigupta/952a134233853bce146c6f396f9104c6 to your computer and use it in GitHub Desktop.
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
const { app, BrowserWindow, ipcMain } = require('electron'); | |
//ipcMain.on will receive the “btnclick” info from renderprocess | |
ipcMain.on("btnclick", function(event, arg) { | |
var url = "https://www.google.com"; | |
// inform the render process that the assigned task finished. | |
// event.sender.send in ipcMain will return the reply to renderprocess | |
event.sender.send("btnclick-task-finished", url); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment