forked from openkylin/kylin-code
启动时argv.json中添加ignore-certificate-errors参数,为true时忽略https请求时的证书.
This commit is contained in:
parent
83373e460f
commit
7bfa47c31a
15
src/main.js
15
src/main.js
|
@ -157,7 +157,10 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
'disable-color-correct-rendering',
|
||||
|
||||
// override for the color profile to use
|
||||
'force-color-profile'
|
||||
'force-color-profile',
|
||||
|
||||
// test our vsx store
|
||||
'ignore-certificate-errors'
|
||||
];
|
||||
|
||||
if (process.platform === 'linux') {
|
||||
|
@ -199,6 +202,13 @@ function configureCommandlineSwitchesSync(cliArgs) {
|
|||
app.commandLine.appendSwitch(argvKey);
|
||||
}
|
||||
}
|
||||
|
||||
else if (argvValue === true || argvValue === 'true') {
|
||||
if (argvKey === 'ignore-certificate-errors') {
|
||||
console.log('argvKey=' + argvKey);
|
||||
app.commandLine.appendSwitch(argvKey);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Append main process flags to process.argv
|
||||
|
@ -283,7 +293,8 @@ function createDefaultArgvConfigSync(argvConfigPath) {
|
|||
'',
|
||||
' // Enabled by default by VS Code to resolve color issues in the renderer',
|
||||
' // See https://github.com/microsoft/vscode/issues/51791 for details',
|
||||
' "disable-color-correct-rendering": true',
|
||||
' "disable-color-correct-rendering": true,',
|
||||
' "ignore-certificate-errors": false',
|
||||
'}'
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue