Merge pull request #11537 from Snuffleupagus/setupFakeWorker-configure

Send the `verbosity` level when setting up fake workers (issue 11536)
This commit is contained in:
Tim van der Meij 2020-01-28 22:50:30 +01:00 committed by GitHub
commit e9dc179673
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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(