Only check for nodeIntegration being true
This commit is contained in:
parent
daa09ea9e7
commit
f033f259b4
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue