mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-23 14:20:27 +08:00
commit
0b94419de4
@ -90,7 +90,7 @@ function CSteamUser(community, userData, customurl) {
|
|||||||
var self = this;
|
var self = this;
|
||||||
if(userData.groups && userData.groups[0] && userData.groups[0].group) {
|
if(userData.groups && userData.groups[0] && userData.groups[0].group) {
|
||||||
this.groups = userData.groups[0].group.map(function(group) {
|
this.groups = userData.groups[0].group.map(function(group) {
|
||||||
if(group['$'] && group['$'].isPrimary) {
|
if(group['$'] && group['$'].isPrimary === "1") {
|
||||||
self.primaryGroup = new SteamID(group.groupID64[0]);
|
self.primaryGroup = new SteamID(group.groupID64[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user