Disable webview when nodeIntegration is off
authorCheng Zhao <zcbenz@gmail.com>
Tue, 17 May 2016 07:51:06 +0000 (16:51 +0900)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 17 May 2016 07:51:06 +0000 (16:51 +0900)
lib/renderer/init.js

index fadf952..bff4ea7 100644 (file)
@@ -70,7 +70,7 @@ if (window.location.protocol === 'chrome-devtools:') {
   require('./override')
 
   // Load webview tag implementation.
-  if (process.guestInstanceId == null) {
+  if (nodeIntegration === 'true' && process.guestInstanceId == null) {
     require('./web-view/web-view')
     require('./web-view/web-view-attributes')
   }