Potential problem fix

This commit is contained in:
Lncvrt committed 2025-10-01 18:11:07 -07:00
1 parent cf9eeeb20e
commit df2ebb6c9b
1 file changed
+10 -4
+10 -4
View File
@@ -19,13 +19,19 @@ export default function Download () {
const fetchVersions = async () => { const fetchVersions = async () => {
try { try {
const gameRes = await axios.get( const gameRes = await axios.get(
'https://berrydash.lncvrt.xyz/database/getLatestVersion.php' 'https://berrydash.lncvrt.xyz/database/getLatestVersion.php',
{
responseType: 'text'
}
) )
const launcherRes = await axios.get( const launcherRes = await axios.get(
'https://berrydash.lncvrt.xyz/database/launcher/latest.php' 'https://berrydash.lncvrt.xyz/database/launcher/latest.php',
{
responseType: 'text'
}
) )
setLatestVersion(gameRes.data) setLatestVersion((gameRes.data as string).trim())
setLatestLauncherVersion(launcherRes.data) setLatestLauncherVersion((launcherRes.data as string).trim())
} catch { } catch {
setLatestCheckFailed(true) setLatestCheckFailed(true)
} }