osc: fix sending object (stringify them if they don't contain type/value)

This commit is contained in:
jean-emmanuel 2017-05-19 13:57:13 +02:00
parent dd8d2aa510
commit 36fcedba54

View file

@ -39,6 +39,8 @@ var parseArg = function(arg,precision){
case 'object':
if (arg.type) {
return {type: parseType(arg.type), value: arg.value}
} else {
return {type: 's', value:JSON.stringify(arg)}
}
case 'string':
return {type: 's', value:arg}