From 72f6575fc478613cd4f91cad4caa93dfb0831cd2 Mon Sep 17 00:00:00 2001 From: Kramer Campbell Date: Wed, 7 May 2014 16:32:02 -0700 Subject: [PATCH] Correct WebContents send example. --- docs/api/browser-window.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/browser-window.md b/docs/api/browser-window.md index 074175921688..c5a15c11a047 100644 --- a/docs/api/browser-window.md +++ b/docs/api/browser-window.md @@ -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!'); }); });