mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Pages in chrome extension should not have node integration
This commit is contained in:
@@ -64,7 +64,7 @@ if (window.location.protocol === 'chrome-devtools:') {
|
||||
} else if (window.location.protocol === 'chrome-extension:') {
|
||||
// Add implementations of chrome API.
|
||||
require('./chrome-api').injectTo(window.location.hostname, window)
|
||||
nodeIntegration = 'true'
|
||||
nodeIntegration = 'false'
|
||||
} else {
|
||||
// Override default web functions.
|
||||
require('./override')
|
||||
|
||||
Reference in New Issue
Block a user