webui: autoscroll new messages

This commit is contained in:
mappu 2023-04-08 16:04:26 +12:00
parent f5ba37a10b
commit 07c5ca1015
1 changed files with 2 additions and 0 deletions

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