Switch to textContent. Fix lint.
This commit is contained in:
parent
a5d9ff8568
commit
66052f2dd2
@ -409,6 +409,6 @@ var Bench = (function BenchClosure() {
|
|||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
return Bench;
|
return Bench;
|
||||||
})();
|
})();
|
||||||
|
@ -887,9 +887,9 @@ var PageView = function pageView(container, content, id, pageWidth, pageHeight,
|
|||||||
if (!PDFJS.enableBench || !this.stats || PDFView.page != this.id)
|
if (!PDFJS.enableBench || !this.stats || PDFView.page != this.id)
|
||||||
return;
|
return;
|
||||||
var stats = this.stats;
|
var stats = this.stats;
|
||||||
var statsHtml = 'Page ' + this.id + '\n';
|
var statsText = 'Page ' + this.id + '\n';
|
||||||
statsHtml += stats.toString().replace(/\n/g, '<br>');
|
statsText += stats.toString();
|
||||||
document.getElementById('info').innerHTML = statsHtml;
|
document.getElementById('info').textContent = statsText;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user