Skip to content

Commit

Permalink
Merge pull request #286 from Heartz66/patch-1
Browse files Browse the repository at this point in the history
Fix Not Logged In
  • Loading branch information
DoctorMcKay authored May 14, 2022
2 parents 9a069e8 + 90a9ee1 commit e28fe5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ SteamCommunity.prototype._checkCommunityError = function(html, callback) {
return err;
}

if (typeof html === 'string' && html.match(/g_steamID = false;/) && html.match(/<h1>Sign In<\/h1>/)) {
if (typeof html === 'string' && html.indexOf('g_steamID = false;') > -1 && html.indexOf('<div class="login_title">Sign In</div>') > -1) {
err = new Error("Not Logged In");
callback(err);
this._notifySessionExpired(err);
Expand Down

0 comments on commit e28fe5c

Please sign in to comment.