remote control: make /GET reply to /GET (with widget address in args) (issue #56)

This commit is contained in:
jean-emmanuel 2017-12-21 07:34:23 +01:00
parent 1849f2a6a9
commit d7ce10c5e2
2 changed files with 44 additions and 4 deletions

View file

@ -56,7 +56,7 @@ var callbacks = {
],
nosync: true
})
}
},
'/GET':function(args) {
@ -76,12 +76,12 @@ var callbacks = {
}
if (!widgets.length) return
for (var i = widgets.length - 1; i >= 0; i--) {
return widgets[i].sendValue({
target:[target],
target: [target],
address: '/GET',
preArgs: [idOrAddress, ...preArgs],
nosync: true
})