Remove ELECTRON_HIDE_INTERNAL_MODULES in docs
authorCheng Zhao <zcbenz@gmail.com>
Wed, 4 May 2016 09:17:27 +0000 (18:17 +0900)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 6 May 2016 17:12:56 +0000 (10:12 -0700)
docs/api/environment-variables.md
docs/api/synopsis.md

index 7339661b09fe2daa7eef62f5a8faac75c04b8083..e01afff5fa7625601b3dd74fabf73832d10f512c 100644 (file)
@@ -52,7 +52,3 @@ Don't attach to current console session.
 ## `ELECTRON_FORCE_WINDOW_MENU_BAR` _Linux_
 
 Don't use global menu bar on Linux.
-
-## `ELECTRON_HIDE_INTERNAL_MODULES`
-
-Turns off compatibility mode for old built-in modules like `require('ipc')`.
index a2aa58f57f17b0b558f2e8cd60b59a36faed3fdc..fc2ce943932cdb1df0f84736f84bcad37ebeed62 100644 (file)
@@ -61,25 +61,6 @@ const {app, BrowserWindow} = require('electron')
 However if you are using plain JavaScript, you have to wait until Chrome fully
 supports ES6.
 
-## Disable old styles of using built-in modules
-
-Before v0.35.0, all built-in modules have to be used in the form of
-`require('module-name')`, though it has [many disadvantages][issue-387], we are
-still supporting it for compatibility with old apps.
-
-To disable the old styles completely, you can set the
-`ELECTRON_HIDE_INTERNAL_MODULES` environment variable:
-
-```javascript
-process.env.ELECTRON_HIDE_INTERNAL_MODULES = 'true'
-```
-
-Or call the `hideInternalModules` API:
-
-```javascript
-require('electron').hideInternalModules()
-```
-
 [gui]: https://en.wikipedia.org/wiki/Graphical_user_interface
 [destructuring-assignment]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
 [issue-387]: https://github.com/electron/electron/issues/387