osc: fix sending object (stringify them if they don't contain type/value)
This commit is contained in:
parent
dd8d2aa510
commit
36fcedba54
1 changed files with 2 additions and 0 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue