From e4ae579b1643721afdaaf4f9e1123f7aa7d722c1 Mon Sep 17 00:00:00 2001 From: Lucidogen Media Date: Sat, 6 Jun 2015 13:38:00 +0200 Subject: [PATCH] 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. --- docs/api/remote.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/api/remote.md b/docs/api/remote.md index 345b0d5b132..4abe774b6a7 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