1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

Catch multiline log function calls.

This commit is contained in:
Kalervo Kujala 2011-08-24 19:11:38 +03:00
parent 3fa8bba48e
commit e00ae164f0

View file

@ -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();
}