custom-module: pop last optional arg if used
This commit is contained in:
parent
0f8b11cbfd
commit
5490a94ba4
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue