mirror of
https://github.com/fluencelabs/dweb-transports
synced 2025-03-16 02:40:49 +00:00
Fix bug in statuselement
This commit is contained in:
parent
3264fdeeef
commit
1897822b88
@ -560,6 +560,7 @@ class Transports {
|
|||||||
this.statuscb = options.statuscb;
|
this.statuscb = options.statuscb;
|
||||||
}
|
}
|
||||||
if (!!options.statuselement) {
|
if (!!options.statuselement) {
|
||||||
|
let statuselement = options.statuselement;
|
||||||
while (statuselement.lastChild) {statuselement.removeChild(statuselement.lastChild); } // Remove any exist status
|
while (statuselement.lastChild) {statuselement.removeChild(statuselement.lastChild); } // Remove any exist status
|
||||||
statuselement.appendChild(
|
statuselement.appendChild(
|
||||||
utils.createElement("UL", {}, transports.map(t => {
|
utils.createElement("UL", {}, transports.map(t => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user