there may be more than one element to remove
Ted Unangst tedu@tedunangst.com
Fri, 25 Oct 2019 03:27:40 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
views/honkpage.js
→
views/honkpage.js
@@ -74,7 +74,7 @@ var srvmsg = doc.children[0].children[1].children[1]
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)