Fixed a valid server object being overwritten

This commit is contained in:
Luke 2016-06-15 11:25:44 -06:00 committed by GitHub
parent c970eee9d3
commit a406cfbfe2

View File

@ -242,7 +242,7 @@ SteamCommunity.prototype.scheduleGroupEvent = function(gid, name, type, descript
server = {"ip": "", "password": ""};
} else if(typeof server === 'string') {
server = {"ip": server, "password": ""};
} else {
} else if(typeof server !== 'object') {
server = {"ip": "", "password": ""};
}
@ -299,7 +299,7 @@ SteamCommunity.prototype.editGroupEvent = function (gid, id, name, type, descrip
server = {"ip": "", "password": ""};
} else if (typeof server === 'string') {
server = {"ip": server, "password": ""};
} else {
} else if (typeof server !== 'object') {
server = {"ip": "", "password": ""};
}