Merge pull request #267 from kramerc/patch-1

Correct WebContents send example.
This commit is contained in:
Cheng Zhao 2014-05-08 09:40:39 +08:00
commit 90a472cd1d

View file

@ -468,7 +468,7 @@ var window = null;
app.on('ready', function() { app.on('ready', function() {
window = new BrowserWindow({width: 800, height: 600}); window = new BrowserWindow({width: 800, height: 600});
window.loadUrl('file://' + __dirname + '/index.html'); window.loadUrl('file://' + __dirname + '/index.html');
window.on('did-finish-load', function() { window.webContents.on('did-finish-load', function() {
window.webContents.send('ping', 'whoooooooh!'); window.webContents.send('ping', 'whoooooooh!');
}); });
}); });