Fixed cookies not being set

This commit is contained in:
Alexander Corn
2016-09-12 01:24:39 -04:00
parent 6d534df8ba
commit 335a955abd

View File

@@ -218,9 +218,9 @@ SteamCommunity.prototype.oAuthLogin = function(steamguard, token, callback) {
SteamCommunity.prototype._setCookie = function(cookie, secure) {
var protocol = secure ? "https" : "http";
this._jar.setCookie(cookie, protocol + "://steamcommunity.com");
this._jar.setCookie(cookie, protocol + "://store.steampowered.com");
this._jar.setCookie(cookie, protocol + "://help.steampowered.com");
this._jar.setCookie(cookie.clone(), protocol + "://steamcommunity.com");
this._jar.setCookie(cookie.clone(), protocol + "://store.steampowered.com");
this._jar.setCookie(cookie.clone(), protocol + "://help.steampowered.com");
};
SteamCommunity.prototype.setCookies = function(cookies) {