mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Adjust the values sent, with the 'test' message, by the WorkerMessageHandler.setup
method
Note how the sent values have inconsistent types, with a boolean in one case and an object in the other (normal) case. Furthermore, explicitly sending a `supportTypedArray: true` property seems superfluous at least to me.
This commit is contained in:
parent
7212ff4eea
commit
f0534b9b51
2 changed files with 4 additions and 7 deletions
|
@ -1665,7 +1665,7 @@ const PDFWorker = (function PDFWorkerClosure() {
|
|||
terminateEarly();
|
||||
return; // worker was destroyed
|
||||
}
|
||||
if (data && data.supportTypedArray) {
|
||||
if (data) { // supportTypedArray
|
||||
this._messageHandler = messageHandler;
|
||||
this._port = worker;
|
||||
this._webWorker = worker;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue