]> khamidou — GitHub mirrors - electron.git/commitdiff
Use "in" over "on"
authorJessica Lord <jlord@github.com>
Fri, 4 Sep 2015 20:44:40 +0000 (13:44 -0700)
committerJessica Lord <jlord@github.com>
Fri, 4 Sep 2015 20:44:40 +0000 (13:44 -0700)
docs/api/auto-updater.md
docs/api/power-monitor.md
docs/api/synopsis.md
docs/api/web-contents.md
docs/styleguide.md

index 3901e1be2062d4351d31050b2db7dc87ab12b106..9734f592c8fe8d2a5fc9b69e6f882fa8d6da9a87 100644 (file)
@@ -53,7 +53,7 @@ server that you are requesting updates from. A common approach is to use query
 parameters, like this:
 
 ```javascript
-// On the main process
+// In the main process
 var app = require('app');
 var autoUpdater = require('auto-updater');
 autoUpdater.setFeedUrl('http://mycompany.com/myapp/latest?version=' + app.getVersion());
index c9a33cc1a1284185c13b7c52fff9a32be9b27036..6ffb910e164d9f533c29baa11553c436c9e84305 100644 (file)
@@ -1,7 +1,7 @@
 # power-monitor
 
 The `power-monitor` module is used to monitor power state changes. You can
-only use it on the main process. You should not use this module until the `ready`
+only use it in the main process. You should not use this module until the `ready`
 event of the `app` module is emitted.
 
 For example:
index 21f4ff2aa4de4db6a3a9629ef13790131b655947..85d9e3f8dfa6535686bc98d3b89a0714eaac346c 100644 (file)
@@ -5,13 +5,13 @@ Electron and third-party node modules also fully supported as well (including
 the [native modules](../tutorial/using-native-node-modules.md)).
 
 Electron also provides some extra built-in modules for developing native
-desktop applications. Some modules are only available on the main process, some
+desktop applications. Some modules are only available in the main process, some
 are only available in the renderer process (web page), and some can be used in
 both processes.
 
 The basic rule is: if a module is
 [GUI](https://en.wikipedia.org/wiki/Graphical_user_interface) or low-level
-system related, then it should be only available on the main process. You need
+system related, then it should be only available in the main process. You need
 to be familiar with the concept of
 [main process vs. renderer process](../tutorial/quick-start.md#the-main-process)
 scripts to be able to use those modules.
index 89afae43d1c066e0239b6ff2e10685d4cd1f8ab4..c49b64743bedc6c5f6b9c88900f377ed9a6265a8 100644 (file)
@@ -445,7 +445,7 @@ page can handle it by listening to the `channel` event of the `ipc` module.
 An example of sending messages from the main process to the renderer process:
 
 ```javascript
-// On the main process.
+// In the main process.
 var window = null;
 app.on('ready', function() {
   window = new BrowserWindow({width: 800, height: 600});
@@ -472,6 +472,6 @@ app.on('ready', function() {
 **Note:**
 
 1. The IPC message handler in web pages does not have an `event` parameter,
-   which is different from the handlers on the main process.
+   which is different from the handlers in the main process.
 2. There is no way to send synchronous messages from the main process to a
    renderer process, because it would be very easy to cause dead locks.
index 23c590e64211acf74b48820079a784786e19cd8c..687b5c4dea3e0a719582a423c1201fd76664b3b9 100644 (file)
@@ -25,6 +25,7 @@ These are the ways that we construct the Electron documentation.
 - Line length is 80-column wrapped.
 - Platform specific methods are noted in italics following method header.
  - ```### `method(foo, bar)` _OS X_```
+- Prefer 'in the ___ process' over 'on'
 
 ## Reading Electron Documentation