Only check for nodeIntegration being true

This commit is contained in:
Kevin Sawicki 2016-03-31 08:26:11 -07:00
parent daa09ea9e7
commit f033f259b4

View file

@ -84,7 +84,7 @@ if (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;