diff --git a/webui.go b/webui.go index 90e3339..6c70c70 100644 --- a/webui.go +++ b/webui.go @@ -97,6 +97,8 @@ function main() { } $main.value += decoder.decode(singleReadResult.value); + $main.scrollTop = $main.scrollHeight; + $main.className = 'alert'; setTimeout(() => { $main.className = ''; }, 1);