Make sandbox APIs more compatible with normal renderers
- Expose remote shortcuts for the `fs`, `os` and `child_process` modules. - Expose the `url` and `timers` modules(the browserify versions) - Add `process.crash` and `process.platform`
This commit is contained in:
parent
46aed5ff6f
commit
e1aebef57c
6 changed files with 26 additions and 14 deletions
1
lib/sandboxed_renderer/api/exports/fs.js
Normal file
1
lib/sandboxed_renderer/api/exports/fs.js
Normal file
|
@ -0,0 +1 @@
|
|||
module.exports = require('electron').remote.require('fs')
|
Loading…
Add table
Add a link
Reference in a new issue