mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-07 16:10:11 +08:00
Fixed crashes on 2FA errors (fixes #22)
This commit is contained in:
parent
01217a3659
commit
479cc47bf5
@ -15,6 +15,7 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) {
|
|||||||
request(this, "conf", key, time, "conf", null, false, function(err, body) {
|
request(this, "conf", key, time, "conf", null, false, function(err, body) {
|
||||||
if(err) {
|
if(err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var $ = Cheerio.load(body);
|
var $ = Cheerio.load(body);
|
||||||
@ -73,6 +74,7 @@ SteamCommunity.prototype.getConfirmationOfferID = function(confID, time, key, ca
|
|||||||
request(this, "details/" + confID, key, time, "details", null, true, function(err, body) {
|
request(this, "details/" + confID, key, time, "details", null, true, function(err, body) {
|
||||||
if(err) {
|
if(err) {
|
||||||
callback(err);
|
callback(err);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!body.success) {
|
if(!body.success) {
|
||||||
|
Loading…
Reference in New Issue
Block a user