Merge pull request #4955 from atom/remove-node-integration-disable-path

Remove path for nodeIntegration value of 'disable'
This commit is contained in:
Cheng Zhao 2016-04-01 11:14:30 +09:00
commit 7353fb4296
2 changed files with 1 additions and 6 deletions

View file

@ -84,7 +84,7 @@ if (window.location.protocol === 'chrome-devtools:') {
}
}
if (nodeIntegration === 'true' || nodeIntegration === 'all' || nodeIntegration === 'except-iframe' || nodeIntegration === 'manual-enable-iframe') {
if (nodeIntegration === 'true') {
// Export node bindings to global.
global.require = require
global.module = module