Fix bug in statuselement

This commit is contained in:
Mitra Ardron 2018-07-26 15:35:12 -07:00
parent 3264fdeeef
commit 1897822b88

View File

@ -560,6 +560,7 @@ class Transports {
this.statuscb = options.statuscb;
}
if (!!options.statuselement) {
let statuselement = options.statuselement;
while (statuselement.lastChild) {statuselement.removeChild(statuselement.lastChild); } // Remove any exist status
statuselement.appendChild(
utils.createElement("UL", {}, transports.map(t => {