removed getInstalledClientVersion

This commit is contained in:
AMIAY
2026-01-24 13:44:56 +01:00
parent ca8ed171d1
commit a6f716c61b
4 changed files with 3 additions and 31 deletions

View File

@@ -26,32 +26,6 @@ async function getLatestClientVersion(branch = 'release') {
}
}
async function getInstalledClientVersion() {
try {
console.log('Fetching installed client version from API...');
const response = await axios.get('https://files.hytalef2p.com/api/clientCheck', {
timeout: 5000,
headers: {
'User-Agent': 'Hytale-F2P-Launcher'
}
});
if (response.data && response.data.client_version) {
const version = response.data.client_version;
console.log(`Installed client version: ${version}`);
return version;
} else {
console.log('Warning: Invalid clientCheck API response');
return null;
}
} catch (error) {
console.error('Error fetching installed client version:', error.message);
console.log('Warning: clientCheck API unavailable');
return null;
}
}
module.exports = {
getLatestClientVersion,
getInstalledClientVersion
getLatestClientVersion
};