Update StackMonkey.ps1
This commit is contained in:
@@ -1847,13 +1847,11 @@ function Install-DattoRMM {
|
|||||||
|
|
||||||
# Fire-and-forget browser opener so Start-Server can block safely.
|
# Fire-and-forget browser opener so Start-Server can block safely.
|
||||||
# Uses Edge if present; falls back to the default browser otherwise.
|
# Uses Edge if present; falls back to the default browser otherwise.
|
||||||
Start-Process powershell -WindowStyle Hidden -ArgumentList `
|
Start-Process powershell -WindowStyle Hidden -ArgumentList
|
||||||
"-NoProfile -Command `"Start-Sleep -Milliseconds 300; `
|
"-NoProfile -Command `"Start-Sleep -Milliseconds 300;
|
||||||
if (Get-Command msedge.exe -ErrorAction SilentlyContinue) { `
|
if (Get-Command msedge.exe -ErrorAction SilentlyContinue) {
|
||||||
Start-Process msedge.exe -ArgumentList '--app=http://localhost:$Port' `
|
Start-Process msedge.exe -ArgumentList '--app=http://localhost:$Port'
|
||||||
} else { `
|
} else { Start-Process 'http://localhost:$Port' }`" | Out-Null
|
||||||
Start-Process 'http://localhost:$Port' `
|
|
||||||
}`" | Out-Null
|
|
||||||
|
|
||||||
# Now start the blocking listener loop
|
# Now start the blocking listener loop
|
||||||
Start-Server
|
Start-Server
|
||||||
|
|||||||
Reference in New Issue
Block a user