Catch multiline log function calls.
This commit is contained in:
parent
3fa8bba48e
commit
e00ae164f0
@ -221,8 +221,8 @@ function checkScrolling() {
|
||||
}
|
||||
|
||||
function log(str) {
|
||||
stdout.insertAdjacentHTML("BeforeEnd", str);
|
||||
stdout.insertAdjacentHTML('BeforeEnd', str);
|
||||
|
||||
if (str.charAt(str.length - 1) == '\n')
|
||||
if (str.lastIndexOf('\n') >= 0)
|
||||
checkScrolling();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user