mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
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
|
@ -462,6 +462,10 @@ var WorkerMessageHandler = {
|
|||
});
|
||||
});
|
||||
|
||||
handler.on('configure', function wphConfigure(data) {
|
||||
setVerbosityLevel(data.verbosity);
|
||||
});
|
||||
|
||||
handler.on('GetDocRequest', function wphSetupDoc(data) {
|
||||
return WorkerMessageHandler.createDocumentHandler(data, port);
|
||||
});
|
||||
|
@ -696,9 +700,6 @@ var WorkerMessageHandler = {
|
|||
cMapOptions: cMapOptions
|
||||
};
|
||||
|
||||
// TODO move it to the worker options synchronization place (vs document).
|
||||
setVerbosityLevel(data.verbosity);
|
||||
|
||||
getPdfManager(data, evaluatorOptions).then(function (newPdfManager) {
|
||||
if (terminated) {
|
||||
// We were in a process of setting up the manager, but it got
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue