]> khamidou — GitHub mirrors - electron.git/commitdiff
Added note and link for poorly documented operation.
authorLucidogen Media <admin@lucidogen.io>
Sat, 6 Jun 2015 11:38:00 +0000 (13:38 +0200)
committerLucidogen Media <admin@lucidogen.io>
Sat, 6 Jun 2015 11:38:00 +0000 (13:38 +0200)
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

index 345b0d5b132d0417ff320b3eec6a85f95e47eb8f..4abe774b6a70ed627bec2bde82e3f3cd4a0dc60c 100644 (file)
@@ -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