Archived
1
0

tweak scrollback limit and add "readonly" note

This commit is contained in:
Jeff Becker 2016-04-25 17:17:59 -04:00
parent 5443e06b38
commit 4a79b1c998
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -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;