From b1d9cdb2859ee02cd1800f7d4565f4edda8ddfc5 Mon Sep 17 00:00:00 2001 From: bordun Date: Mon, 30 Mar 2020 18:05:16 +0200 Subject: [PATCH] custom-module: pop last optional arg if used --- src/server/osc/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/osc/index.js b/src/server/osc/index.js index a886a572..7252411f 100644 --- a/src/server/osc/index.js +++ b/src/server/osc/index.js @@ -59,7 +59,7 @@ class OscServer { var lastArg = args[args.length - 1], options = {} if (typeof lastArg === 'object' && lastArg !== null && lastArg.type === undefined) { - options = lastArg + options = args.pop() } this.receiveOsc({host, port, address, args:args.map(x=>this.parseArg(x))}, options.clientId) },