Created
July 5, 2017 01:37
-
-
Save junwatu/2e5cf80b559a2c0d4f701c8ebcd91b01 to your computer and use it in GitHub Desktop.
Kirim Data dari Browser Window ke Main Proccess - main.js
This file contains hidden or 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
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