mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 16:33:56 +02:00
userdata
This commit is contained in:
parent
fa0a740370
commit
5fef23ae34
1 changed files with 4 additions and 3 deletions
|
@ -310,16 +310,17 @@
|
|||
results.forEach(function(result) {
|
||||
var properties = Entities.getEntityProperties(result);
|
||||
|
||||
if (userData === "") {
|
||||
print('no userdata -- its blank')
|
||||
if (properties.userData === "" || properties.userData === undefined) {
|
||||
print('no userdata -- its blank or undefined')
|
||||
return;
|
||||
}
|
||||
|
||||
var userData = null;
|
||||
try {
|
||||
userData = JSON.parse(properties.userData);
|
||||
} catch (err) {
|
||||
print('error parsing json in resetscript for: ' + properties.name);
|
||||
print('properties are:' + properties.userData);
|
||||
//print('properties are:' + properties.userData);
|
||||
return;
|
||||
}
|
||||
if (userData.hasOwnProperty('hifiHomeKey')) {
|
||||
|
|
Loading…
Reference in a new issue