widgets: fix widget register update from address 'auto' to something elese
This commit is contained in:
parent
56b4443f58
commit
e3293971c1
2 changed files with 6 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ class WidgetManager extends EventEmitter {
|
|||
newAddress = this.createAddressRef(widget),
|
||||
hash = widget.hash
|
||||
|
||||
if (address && address !== 'auto' && this.addressRoute[address].indexOf(hash) != -1) this.addressRoute[address].splice(this.addressRoute[address].indexOf(hash), 1)
|
||||
if (address && this.addressRoute[address].indexOf(hash) != -1) this.addressRoute[address].splice(this.addressRoute[address].indexOf(hash), 1)
|
||||
|
||||
if (!this.addressRoute[newAddress]) this.addressRoute[newAddress] = []
|
||||
this.addressRoute[newAddress].push(hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue