From cd762d47ea40a67d2e8b134762ecbf246bca47ea Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 6 Jul 2014 16:59:07 +0200 Subject: Print log correctly --- views/client.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/client.html b/views/client.html index ebb3810..28140ae 100644 --- a/views/client.html +++ b/views/client.html @@ -25,7 +25,7 @@ var console = document.getElementById("console"); function println(str) { - console.innerHTML = str + "\n" + console.innerHTML; + console.insertBefore(document.createTextNode(str + "\n"), console.firstChild); } function changeControlState(connected) { @@ -96,4 +96,4 @@ messageField.value = ""; }); - \ No newline at end of file + -- cgit v1.2.3