Skip to content

Commit

Permalink
[browser] host should not forward env variables (dotnet#104557)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelsavara committed Jul 9, 2024
1 parent dd4b757 commit 9fb2c80
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/mono/wasm/host/BrowserHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ private async Task RunAsync(ILoggerFactory loggerFactory, CancellationToken toke
envVars[kvp.Key] = kvp.Value;
}

foreach (DictionaryEntry de in Environment.GetEnvironmentVariables())
{
if (de.Key is not null && de.Value is not null)
envVars[(string)de.Key] = (string)de.Value;
}

var runArgsJson = new RunArgumentsJson(applicationArguments: _args.AppArgs,
runtimeArguments: _args.CommonConfig.RuntimeArguments,
environmentVariables: envVars,
Expand Down

0 comments on commit 9fb2c80

Please sign in to comment.