custom module: parsing issue when sending widget data using receive() (type attribute errouneously parsed as an osc typetag)

This commit is contained in:
bordun 2020-12-17 15:11:54 +01:00
parent 34197dd38a
commit ae9fade422
2 changed files with 7 additions and 2 deletions

View file

@ -76,7 +76,7 @@ class OscServer {
case 'string':
return {type: 's', value:arg}
case 'object':
if (arg.type) return arg
if (arg.type && arg.type.length === 1) return arg
default:
return {type: 's', value:JSON.stringify(arg)}
}