mirror of
https://github.com/electron/electron.git
synced 2026-01-25 07:18:18 -05:00
Merge pull request #267 from kramerc/patch-1
Correct WebContents send example.
This commit is contained in:
@@ -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!');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user