Skip to content

Commit bc5960e

Browse files
authored
Fix commands for opening browsers on macOS (#32627)
1 parent 350cf6b commit bc5960e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Components/WebAssembly/Server/src/TargetPickerUi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ private string GetLaunchChromeInstructions(string targetApplicationUrl)
175175
else if (OperatingSystem.IsMacOS())
176176
{
177177
return $@"<p>Execute the following:</p>
178-
<p><strong><code>open /Applications/Google\ Chrome.app --args --remote-debugging-port={debuggerPort} --user-data-dir={profilePath} {targetApplicationUrl}</code></strong></p>";
178+
<p><strong><code>open -n /Applications/Google\ Chrome.app --args --remote-debugging-port={debuggerPort} --user-data-dir={profilePath} {targetApplicationUrl}</code></strong></p>";
179179
}
180180
else
181181
{
@@ -196,7 +196,7 @@ private string GetLaunchEdgeInstructions(string targetApplicationUrl)
196196
else if (OperatingSystem.IsMacOS())
197197
{
198198
return $@"<p>In a terminal window execute the following:</p>
199-
<p><strong><code>open /Applications/Microsoft\ Edge\ Dev.app --args --remote-debugging-port={debuggerPort} --user-data-dir={profilePath} {targetApplicationUrl}</code></strong></p>";
199+
<p><strong><code>open -n /Applications/Microsoft\ Edge.app --args --remote-debugging-port={debuggerPort} --user-data-dir={profilePath} {targetApplicationUrl}</code></strong></p>";
200200
}
201201
else
202202
{

0 commit comments

Comments
 (0)