Correct WebContents send example.

This commit is contained in:
Kramer Campbell 2014-05-07 16:32:02 -07:00
parent 2b5a0e28e3
commit 72f6575fc4

View file

@ -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!');
});
});