diff --git a/src/util.js b/src/util.js index 4ef87c245..5c48c198e 100644 --- a/src/util.js +++ b/src/util.js @@ -409,6 +409,6 @@ var Bench = (function BenchClosure() { } return out; } - } + }; return Bench; })(); diff --git a/web/viewer.js b/web/viewer.js index 2e4c1a767..de32aca89 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -887,9 +887,9 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight, if (!PDFJS.enableBench || !this.stats || PDFView.page != this.id) return; var stats = this.stats; - var statsHtml = 'Page ' + this.id + '\n'; - statsHtml += stats.toString().replace(/\n/g, '
'); - document.getElementById('info').innerHTML = statsHtml; + var statsText = 'Page ' + this.id + '\n'; + statsText += stats.toString(); + document.getElementById('info').textContent = statsText; }; };