Javascript: I hate you.

(fix a **** stupid bug while doing version checking)
This commit is contained in:
Godzil 2018-08-27 18:16:23 +01:00
parent e5c4c08e66
commit beed932e93

View File

@ -11,7 +11,7 @@ log.info('Crunchy version ' + current_version);
request.get({ uri: 'https://box.godzil.net/getVersion.php?tool=crunchy&v=' + current_version },
(error: Error, response: any, body: any) =>
{
if (response && (response.StatusCode === 200))
if (response && (response.statusCode === 200))
{
const onlinepkg = JSON.parse(body);
if (onlinepkg.status === 'ok')
@ -28,7 +28,7 @@ request.get({ uri: 'https://box.godzil.net/getVersion.php?tool=crunchy&v=' + cur
}
else
{
log.info('Cannot check version.');
log.info('Error while checking for the current version.');
}
});