webui: autoscroll new messages
This commit is contained in:
parent
f5ba37a10b
commit
07c5ca1015
2
webui.go
2
webui.go
@ -97,6 +97,8 @@ function main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$main.value += decoder.decode(singleReadResult.value);
|
$main.value += decoder.decode(singleReadResult.value);
|
||||||
|
$main.scrollTop = $main.scrollHeight;
|
||||||
|
|
||||||
$main.className = 'alert';
|
$main.className = 'alert';
|
||||||
setTimeout(() => { $main.className = ''; }, 1);
|
setTimeout(() => { $main.className = ''; }, 1);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user