Correct WebContents send example.
This commit is contained in:
parent
2b5a0e28e3
commit
72f6575fc4
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ var window = null;
|
|||
app.on('ready', function() {
|
||||
window = new BrowserWindow({width: 800, height: 600});
|
||||
window.loadUrl('file://' + __dirname + '/index.html');
|
||||
window.on('did-finish-load', function() {
|
||||
window.webContents.on('did-finish-load', function() {
|
||||
window.webContents.send('ping', 'whoooooooh!');
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue