We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10865ab commit 7f5313dCopy full SHA for 7f5313d
src/nw_package.cc
@@ -455,10 +455,12 @@ void Package::ReadChromiumArgs() {
455
std::unique_ptr<base::Environment> env(base::Environment::Create());
456
457
bool got_env = env->GetVar("NW_PRE_ARGS", &env_args);
458
- if (!got_env && !root()->HasKey(switches::kmChromiumArgs))
459
- return;
+ if (!root()->HasKey(switches::kmChromiumArgs))
+ if (!got_env)
460
+ return;
461
- if (!got_env && !root()->GetStringASCII(switches::kmChromiumArgs, &args))
462
+ if (!root()->GetStringASCII(switches::kmChromiumArgs, &args))
463
464
return;
465
466
args = env_args + kChromiumArgsSeparator + args;
0 commit comments