Update process.md

Fixed the `loaded` example according to
[this](https://github.com/atom/electron/issues/2984#issuecomment-145465907)
comment.
This commit is contained in:
Eran Tiktin 2015-10-05 16:51:49 +03:00
parent c22ffd863b
commit 239b97cde1

View file

@ -21,9 +21,11 @@ the global scope when node integration is turned off:
```js
// preload.js
var _setImmediate = setImmediate;
var _clearImmediate = clearImmediate;
process.once('loaded', function() {
global.setImmediate = setImmediate;
global.clearImmediate = clearImmediate;
global.setImmediate = _setImmediate;
global.clearImmediate = _clearImmediate;
});
```