Skip to content

Commit

Permalink
ConfigApp: Fix accidentally leftover hardcoded workshop provider domain
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Oct 30, 2023
1 parent 7acb1ac commit 8605e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ConfigApp/WorkshopInstallHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ void fatalCleanup()
HttpClient httpClient = new HttpClient();
try
{
var result = await httpClient.GetAsync($"https://chaos.gopong.dev/workshop/fetch_submission_data?submission_id={m_SubmissionItem.Id}");
var domain = OptionsManager.WorkshopFile.ReadValue("WorkshopCustomUrl", Info.WORKSHOP_DEFAULT_URL);

var result = await httpClient.GetAsync($"{domain}/workshop/fetch_submission_data?submission_id={m_SubmissionItem.Id}");
if (!result.IsSuccessStatusCode)
{
MessageBox.Show("Error while fetching submission. Please try again!", "ChaosModV", MessageBoxButton.OK, MessageBoxImage.Error);
Expand Down

0 comments on commit 8605e64

Please sign in to comment.