Fix Not Logged In

Steam recently changed their login pages. This change should correctly identify the login state.
This commit is contained in:
Heartz66
2022-08-24 23:59:51 +02:00
committed by GitHub
parent 1031a4dbd7
commit 260bfaa0ad

View File

@@ -124,7 +124,7 @@ SteamCommunity.prototype._checkCommunityError = function(html, callback) {
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");
callback(err);
this._notifySessionExpired(err);