aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shell.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.html b/src/shell.html
index 53a4fffb..efb9e91d 100644
--- a/src/shell.html
+++ b/src/shell.html
@@ -50,7 +50,7 @@
//text = text.replace(/>/g, ">");
//text = text.replace('\n', '<br>', 'g');
element.value += text + "\n";
- element.scrollTop = 99999; // focus on bottom
+ element.scrollTop = element.scrollHeight; // focus on bottom
};
})(),
printErr: function(text) {