Skip to content

Commit

Permalink
Start on #430
Browse files Browse the repository at this point in the history
  • Loading branch information
rcmaehl authored Sep 10, 2024
1 parent c64fc81 commit 8106037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MSEdgeRedirect.au3
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Func ActiveMode(ByRef $aCMDLine)
$aCMDLine[2] = ""
ContinueCase
Case $aCMDLine[0] = 2 And FileExists($aCMDLine[2])
If FileExists($aCMDLine[2]) Then $aCMDLine[2] = '"' & $aCMDLine[2] & '"'
ContinueCase
Case $aCMDLine[0] = 2 And $aCMDLine[2] = "--uninstall" ; Uninstalling Edge
ContinueCase
Expand All @@ -94,8 +95,8 @@ Func ActiveMode(ByRef $aCMDLine)
$iIndex = _ArraySearch($aCMDLine, "--from-ie-to-edge", 2, 0, 0, 1)
If $iIndex Then
_ArrayDelete($aCMDLine, $iIndex)
$sCMDLine = _ArrayToString($aCMDLine, " ", 2, -1)
EndIf
$sCMDLine = _ArrayToString($aCMDLine, " ", 2, -1)
_SafeRun($aCMDLine[1], $sCMDLine)
Case $sParent = "BrowserSelect.exe" ; TODO: DOUBLE CHECK $aCMDLine[2]
ContinueCase
Expand Down

0 comments on commit 8106037

Please sign in to comment.