there may be more than one element to remove

This commit is contained in:
Ted Unangst 2019-10-25 03:27:40 -04:00
parent b69665f6a5
commit bf81bb6fb1
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ function fillinhonks(xhr) {
var honks = doc.children[0].children[1].children[2].children
var srvel = document.getElementById("srvmsg")
if (srvel.children[0]) {
while (srvel.children[0]) {
srvel.children[0].remove()
}
srvel.prepend(srvmsg)