osc listener: default value should always be parsed as json (regression in 7e0921fb89)
This commit is contained in:
parent
acc405c100
commit
591a996fd6
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
var osc = require('../../osc'),
|
||||
{isJSONObject} = require('../../utils')
|
||||
{isJSON, isJSONObject} = require('../../utils')
|
||||
|
||||
module.exports = class OscReceiver {
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ module.exports = class OscReceiver {
|
|||
|
||||
var {address, value, parent, propName, usePreArgs} = options
|
||||
|
||||
if (typeof value === 'string' && isJSONObject(value)) {
|
||||
if (typeof value === 'string' && isJSON(value)) {
|
||||
try {
|
||||
this.value = JSON.parseFlex(value)
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue