From 42760822a5069494a330ee37b16646e9758f689c Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Tue, 24 Jan 2017 18:29:31 +0100 Subject: [PATCH] osc: fix sending deep object (stringify them) --- app/main/osc.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main/osc.js b/app/main/osc.js index f993dc4d..8d68d895 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -37,9 +37,11 @@ var parseArg = function(arg,precision){ case 'boolean': return {type: arg ? 'T' : 'F', value: arg} case 'object': - return {type: parseType(arg.type), value: arg.value} + if (arg.type) { + return {type: parseType(arg.type), value: arg.value} + } default: - return {type: 's', value:String(arg)} + return {type: 's', value:JSON.stringify(arg)} } }