mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2026-08-22 14:43:29 +08:00
Fix Not Logged In
Steam recently changed their login pages. This change should correctly identify the login state.
This commit is contained in:
@@ -124,7 +124,7 @@ SteamCommunity.prototype._checkCommunityError = function(html, callback) {
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof html === 'string' && html.indexOf('g_steamID = false;') > -1 && html.indexOf('<div class="login_title">Sign In</div>') > -1) {
|
if (typeof html === 'string' && html.indexOf('g_steamID = false;') > -1 && html.indexOf('<title>Sign In</title>') > -1) {
|
||||||
err = new Error("Not Logged In");
|
err = new Error("Not Logged In");
|
||||||
callback(err);
|
callback(err);
|
||||||
this._notifySessionExpired(err);
|
this._notifySessionExpired(err);
|
||||||
|
|||||||
Reference in New Issue
Block a user