Proxy global PDFJS.verbosity to properly configure shared/util.
This commit is contained in:
parent
a8e5912cb1
commit
2fa4dd6f40
4 changed files with 26 additions and 15 deletions
|
@ -50,6 +50,13 @@
|
|||
if (PDFJS.verbosity !== undefined) {
|
||||
sharedUtil.setVerbosityLevel(PDFJS.verbosity);
|
||||
}
|
||||
delete PDFJS.verbosity;
|
||||
Object.defineProperty(PDFJS, 'verbosity', {
|
||||
get: function () { return sharedUtil.getVerbosityLevel(); },
|
||||
set: function (level) { sharedUtil.setVerbosityLevel(level); },
|
||||
enumerable: true,
|
||||
configurable: true
|
||||
});
|
||||
|
||||
PDFJS.VERBOSITY_LEVELS = sharedUtil.VERBOSITY_LEVELS;
|
||||
PDFJS.OPS = sharedUtil.OPS;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue