Watts-Lab / deliberation-empirica

Empirica V2 framework
MIT License
5 stars 0 forks source link

Use ip location and VPN status in group composition conditions #797

Open JamesPHoughton opened 1 month ago

JamesPHoughton commented 1 month ago

Currently this information is stored in the player object under

const ipInfo = player.get("ipInfo")
const country = ipInfo.country
const knownVPN = ipInfo.isKnownVpn

Need to work out a naming convention that will work for this, or just update the comparison code to be able to get different items. see:https://github.com/Watts-Lab/deliberation-empirica/issues/756