Changing command line option name

This commit is contained in:
Hari Krishna Reddy Juturu 2017-05-08 17:27:31 -07:00
parent 357caf8991
commit 3321f7d39c
9 changed files with 16 additions and 30 deletions

View file

@ -57,7 +57,7 @@ let nodeIntegration = 'false'
let preloadScript = null
let isBackgroundPage = false
let appPath = null
let enableWebView = false
let overrideWebViewSecurity = false
for (let arg of process.argv) {
if (arg.indexOf('--guest-instance-id=') === 0) {
// This is a guest web view.
@ -74,7 +74,7 @@ for (let arg of process.argv) {
} else if (arg.indexOf('--app-path=') === 0) {
appPath = arg.substr(arg.indexOf('=') + 1)
} else if (arg.indexOf('--enable-webview-override=') === 0) {
enableWebView = arg.substr(arg.indexOf('=') + 1)
overrideWebViewSecurity = arg.substr(arg.indexOf('=') + 1)
}
}
@ -97,7 +97,7 @@ if (window.location.protocol === 'chrome-devtools:') {
require('./content-scripts-injector')
// Load webview tag implementation.
if ((nodeIntegration === 'true' || enableWebView === 'true') && process.guestInstanceId == null) {
if ((nodeIntegration === 'true' || overrideWebViewSecurity === 'true') && process.guestInstanceId == null) {
require('./web-view/web-view')
require('./web-view/web-view-attributes')
}