mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-03 17:25:31 +00:00
Fix api suffix handling
This commit is contained in:
parent
cfd14fc3bd
commit
108d7c254e
1 changed files with 6 additions and 1 deletions
|
@ -59,7 +59,12 @@ If (Test-Path $logFilePath) {
|
|||
}
|
||||
If ($null -ne $apiUrl){
|
||||
if ($apiUrl -notlike "*/register-kill") {
|
||||
$apiUrl = $apiUrl + "/register-kill"
|
||||
if ($apiUrl -like "*/"){
|
||||
$apiUrl = $apiUrl + "register-kill"
|
||||
}
|
||||
if ($apiUrl -notlike "*/"){
|
||||
$apiUrl = $apiUrl + "/register-kill"
|
||||
}
|
||||
}
|
||||
Write-output "PlayerName=$apiURL"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue