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());
# 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:
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.
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});
**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.
- 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