Update StackMonkey.ps1

This commit is contained in:
2025-06-29 03:43:51 -04:00
parent 080f548d81
commit a7d6762113

View File

@@ -165,9 +165,6 @@ if ($gallery.InstallationPolicy -ne 'Trusted') {
Write-Host "PSGallery marked as Trusted" -ForegroundColor Green
}
# …and only *after* this completes* do you Start-Server…
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
#endregion
@@ -1562,15 +1559,6 @@ function Start-Server {
#endregion
# Only launch the UI if we're in the default UI parameter set
if ($PSCmdlet.ParameterSetName -eq 'UI') {
# now that $Port is defined, show it properly:
Write-Host "Starting ScriptMonkey UI on http://localhost:$Port/" -ForegroundColor Cyan
Start-Process "msedge.exe" -ArgumentList "--app=http://localhost:$Port"
Start-Server # this will block until you hit Exit
return
}
# At the end of ScriptMonkey.ps1
if ($MyInvocation.ExpectingInput) {