Added check for community error when getting webapi oauth token

This commit is contained in:
Alexander Corn 2015-11-30 19:40:10 -05:00
parent 2e02c14455
commit f3ac556922

View File

@ -9,6 +9,10 @@ SteamCommunity.prototype.getWebApiOauthToken = function(callback) {
return;
}
if(self._checkCommunityError(body, callback)) {
return;
}
var match = body.match(/"([0-9a-f]{32})"/);
if (!match) {
callback(new Error("Malformed response"));