mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-28 09:10:25 +08:00
Fixed loggedIn method
This commit is contained in:
parent
237d3786a2
commit
46e16cc0b6
6
index.js
6
index.js
@ -318,7 +318,11 @@ SteamCommunity.prototype.resetItemNotifications = function(callback) {
|
||||
};
|
||||
|
||||
SteamCommunity.prototype.loggedIn = function(callback) {
|
||||
this.httpRequest("https://steamcommunity.com/my", {"followRedirect": false}, function(err, response, body) {
|
||||
this.httpRequestGet({
|
||||
"uri": "https://steamcommunity.com/my",
|
||||
"followRedirect": false,
|
||||
"checkHttpError": false
|
||||
}, function(err, response, body) {
|
||||
if(err || (response.statusCode != 302 && response.statusCode != 403)) {
|
||||
callback(err || new Error("HTTP error " + response.statusCode));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user