I completely forgot to commit this, great

This commit is contained in:
2026-01-22 19:27:46 -07:00
parent 4f666f0cac
commit 17a617f4bc
2 changed files with 9 additions and 5 deletions

View File

@@ -42,12 +42,12 @@ public class LatestVersionText : MonoBehaviour
async void GetLatestVersion()
{
using UnityWebRequest request = UnityWebRequest.Get(SensitiveInfo.SERVER_DATABASE_PREFIX + "getLatestVersion.php");
using UnityWebRequest request = UnityWebRequest.Get(Endpoints.LATEST_VERSION_ENDPOINT);
request.SetRequestHeader("Requester", "BerryDashClient");
request.SetRequestHeader("ClientVersion", Application.version);
request.SetRequestHeader("ClientPlatform", Application.platform.ToString());
await request.SendWebRequest();
if (request.result != UnityWebRequest.Result.Success)
if (request.downloadHandler.text == null)
{
latest = "-1";
}