webui: autoscroll new messages

This commit is contained in:
mappu 2023-04-08 16:04:26 +12:00
parent f5ba37a10b
commit 07c5ca1015

View File

@ -97,6 +97,8 @@ function main() {
}
$main.value += decoder.decode(singleReadResult.value);
$main.scrollTop = $main.scrollHeight;
$main.className = 'alert';
setTimeout(() => { $main.className = ''; }, 1);