Archived
Potential problem fix
This commit is contained in:
1 file changed
+10
-4
@@ -19,13 +19,19 @@ export default function Download () {
|
||||
const fetchVersions = async () => {
|
||||
try {
|
||||
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(
|
||||
'https://berrydash.lncvrt.xyz/database/launcher/latest.php'
|
||||
'https://berrydash.lncvrt.xyz/database/launcher/latest.php',
|
||||
{
|
||||
responseType: 'text'
|
||||
}
|
||||
)
|
||||
setLatestVersion(gameRes.data)
|
||||
setLatestLauncherVersion(launcherRes.data)
|
||||
setLatestVersion((gameRes.data as string).trim())
|
||||
setLatestLauncherVersion((launcherRes.data as string).trim())
|
||||
} catch {
|
||||
setLatestCheckFailed(true)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user