Skip to content

Instantly share code, notes, and snippets.

@junwatu
Created July 5, 2017 01:37
Show Gist options
  • Save junwatu/2e5cf80b559a2c0d4f701c8ebcd91b01 to your computer and use it in GitHub Desktop.
Save junwatu/2e5cf80b559a2c0d4f701c8ebcd91b01 to your computer and use it in GitHub Desktop.
Kirim Data dari Browser Window ke Main Proccess - main.js
dotdBrowserWindow.webContents.on('dom-ready', (event, url) => {
dotdBrowserWindow.webContents.executeJavaScript('require("electron").ipcRenderer.send("HTMLData", document.body.innerHTML);');
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment