Javascript: I hate you.
(fix a **** stupid bug while doing version checking)
This commit is contained in:
parent
e5c4c08e66
commit
beed932e93
@ -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.');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user