Correct WebContents send example.
authorKramer Campbell <kramer@kramerc.com>
Wed, 7 May 2014 23:32:02 +0000 (16:32 -0700)
committerKramer Campbell <kramer@kramerc.com>
Wed, 7 May 2014 23:32:02 +0000 (16:32 -0700)
docs/api/browser-window.md

index 0741759..c5a15c1 100644 (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!');
   });
 });