1
0
Fork 0
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:
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

@ -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