Fixed crashes on 2FA errors (fixes #22)

This commit is contained in:
Alexander Corn 2015-12-03 13:57:49 -05:00
parent 01217a3659
commit 479cc47bf5

View File

@ -15,6 +15,7 @@ SteamCommunity.prototype.getConfirmations = function(time, key, callback) {
request(this, "conf", key, time, "conf", null, false, function(err, body) {
if(err) {
callback(err);
return;
}
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) {
if(err) {
callback(err);
return;
}
if(!body.success) {