From: Lucidogen Media Date: Sat, 6 Jun 2015 11:38:00 +0000 (+0200) Subject: Added note and link for poorly documented operation. X-Git-Tag: v0.28.0~26^2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=e4ae579b1643721afdaaf4f9e1123f7aa7d722c1;p=electron.git Added note and link for poorly documented operation. Accessing renderer process from main process is not documented and as "remote" does the opposite, it seems fair to add a pointer here. --- diff --git a/docs/api/remote.md b/docs/api/remote.md index 345b0d5b..4abe774b 100644 --- a/docs/api/remote.md +++ b/docs/api/remote.md @@ -20,6 +20,8 @@ var win = new BrowserWindow({ width: 800, height: 600 }); win.loadUrl('https://github.com'); ``` +Note: for the reverse (access renderer process from main process), you can use [webContents.executeJavascript](https://github.com/atom/electron/blob/master/docs/api/browser-window.md#browserwindowwebcontents). + ## Remote objects Each object (including functions) returned by the `remote` module represents an