Merge pull request #267 from kramerc/patch-1
Correct WebContents send example.
This commit is contained in:
commit
90a472cd1d
1 changed files with 1 additions and 1 deletions
|
@ -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!');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue