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

@ -1,9 +1,14 @@
# Changelog
## 1.8.2
- bug fixes
- custom module: parsing issue when sending widget data using `receive()` (`type` attribute errouneously parsed as an osc typetag)
## 1.8.1
- bug fixes
- script: stops triggering osc messages under some circumstances
- script: stops triggering osc messages under some circumstances
## 1.8.0

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)}
}