From bf81bb6fb110cc5529effde3c31b71a60758b356 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Fri, 25 Oct 2019 03:27:40 -0400 Subject: [PATCH] there may be more than one element to remove --- views/honkpage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/honkpage.js b/views/honkpage.js index b417047..27746a5 100644 --- a/views/honkpage.js +++ b/views/honkpage.js @@ -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)