Browse Source

disable node integration for chrome scheme

deepak1556 8 years ago
parent
commit
bd9a9657aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/renderer/init.js

+ 3 - 0
lib/renderer/init.js

@@ -80,6 +80,9 @@ if (window.location.protocol === 'chrome-devtools:') {
   // Add implementations of chrome API.
   require('./chrome-api').injectTo(window.location.hostname, isBackgroundPage, window)
   nodeIntegration = 'false'
+} else if (window.location.protocol === 'chrome:') {
+  // Disable node integration for chrome UI scheme.
+  nodeIntegration = 'false'
 } else {
   // Override default web functions.
   require('./override')