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:
parent
c22ffd863b
commit
239b97cde1
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
});
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue