Proxy global PDFJS.verbosity to properly configure shared/util.

This commit is contained in:
Yury Delendik 2016-03-03 10:13:37 -06:00
parent a8e5912cb1
commit 2fa4dd6f40
4 changed files with 26 additions and 15 deletions

View file

@ -27,6 +27,16 @@ function PDFJS() {
// Mock class constructor. See src/display/api.js.
}
/**
* Controls the logging level.
* The constants from PDFJS.VERBOSITY_LEVELS should be used:
* - errors
* - warnings [default]
* - infos
* @var {number}
*/
PDFJS.verbosity = PDFJS.VERBOSITY_LEVELS.warnings;
/**
* Represents the eventual result of an asynchronous operation.
* @external Promise