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:
parent
3fa8bba48e
commit
e00ae164f0
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue