Send the verbosity level when setting up fake workers (issue 11536)

Interestingly the viewer already seem to work correctly as-is, with workers disabled and a non-standard `verbosity` level.
Hence this is possibly Node.js specific, but given that the issue is lacking *both* the PDF file in question and a runnable test-case, so this patch is essentially a best-effort guess at what the problem could be.
This commit is contained in:
Jonas Jenwald 2020-01-26 12:21:23 +01:00
parent 3775b711ed
commit 427df2dfd7

View File

@ -1883,6 +1883,10 @@ const PDFWorker = (function PDFWorkerClosure() {
const messageHandler = new MessageHandler(id, id + "_worker", port);
this._messageHandler = messageHandler;
this._readyCapability.resolve();
// Send global setting, e.g. verbosity level.
messageHandler.send("configure", {
verbosity: this.verbosity,
});
})
.catch(reason => {
this._readyCapability.reject(