custom-module: pop last optional arg if used

This commit is contained in:
bordun 2020-03-30 18:05:16 +02:00
parent 0f8b11cbfd
commit 5490a94ba4

View file

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