script: make send() first arg optional
This commit is contained in:
parent
8a854ad186
commit
fa84ef41b5
1 changed files with 6 additions and 1 deletions
|
|
@ -68,6 +68,11 @@ class ScriptVm extends Vm {
|
|||
|
||||
if (!options.send) return
|
||||
|
||||
if (target && target[0] === '/') {
|
||||
args.unshift(address)
|
||||
address = target
|
||||
}
|
||||
|
||||
var overrides = {
|
||||
address,
|
||||
v: args,
|
||||
|
|
@ -136,7 +141,7 @@ class ScriptVm extends Vm {
|
|||
if (filter) {
|
||||
|
||||
filter = Array.isArray(filter) ? filter : [filter]
|
||||
|
||||
|
||||
var containers = this.filter.map(x=>widgetManager.getWidgetById(x)).reduce((a,b)=>a.concat(b), [])
|
||||
|
||||
if (!containers.length) return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue