Remove the undocumented PDFJS.enableStats option

In order to simplify things, the undocumented `enableStats` option was removed and `pdfBug` is now instead used to enabled general debugging *and* page request/rendering stats.
Considering that in the default viewer the `stats` was only used when debugging was also enabled, this simplification (code wise) definitely seem worthwhile to me.
This commit is contained in:
Jonas Jenwald 2018-02-13 14:34:29 +01:00
parent 6bc3e1fb93
commit e95c11a7f0
5 changed files with 5 additions and 11 deletions

View file

@ -462,7 +462,6 @@ var Stats = (function Stats() {
manager: null,
init(pdfjsLib) {
this.panel.setAttribute('style', 'padding: 5px;');
pdfjsLib.PDFJS.enableStats = true;
},
enabled: false,
active: false,