From 4a79b1c998c1b5e508c6ddc2c3289c52b0ffae4d Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 25 Apr 2016 17:17:59 -0400 Subject: [PATCH] tweak scrollback limit and add "readonly" note --- contrib/static/nntpchan.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/static/nntpchan.js b/contrib/static/nntpchan.js index 2059595..e0313b5 100644 --- a/contrib/static/nntpchan.js +++ b/contrib/static/nntpchan.js @@ -126,7 +126,7 @@ function inject_hover(prefix, el, parent) { function livechan_got_post(widget, j) { // do scroll - while (widget.children.length > 20) { + while (widget.children.length > 5) { // remove top element widget.removeChild(widget.children[0]); } @@ -153,7 +153,7 @@ function inject_livechan_widget(prefix, parent) { }; progress("initialize"); socket.onopen = function () { - progress("streaming"); + progress("streaming (read only)"); } socket.onmessage = function(ev) { var j = null;