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 () => {
|
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)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user