From a085fce03cab69456df477460dbed8887fa4eea7 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Thu, 16 Oct 2025 19:32:17 -0400 Subject: [PATCH] Update StackMonkey.ps1 --- StackMonkey.ps1 | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/StackMonkey.ps1 b/StackMonkey.ps1 index 267007c..09549bd 100644 --- a/StackMonkey.ps1 +++ b/StackMonkey.ps1 @@ -1847,13 +1847,11 @@ function Install-DattoRMM { # Fire-and-forget browser opener so Start-Server can block safely. # Uses Edge if present; falls back to the default browser otherwise. - Start-Process powershell -WindowStyle Hidden -ArgumentList ` - "-NoProfile -Command `"Start-Sleep -Milliseconds 300; ` - if (Get-Command msedge.exe -ErrorAction SilentlyContinue) { ` - Start-Process msedge.exe -ArgumentList '--app=http://localhost:$Port' ` - } else { ` - Start-Process 'http://localhost:$Port' ` - }`" | Out-Null + Start-Process powershell -WindowStyle Hidden -ArgumentList + "-NoProfile -Command `"Start-Sleep -Milliseconds 300; + if (Get-Command msedge.exe -ErrorAction SilentlyContinue) { + Start-Process msedge.exe -ArgumentList '--app=http://localhost:$Port' + } else { Start-Process 'http://localhost:$Port' }`" | Out-Null # Now start the blocking listener loop Start-Server