mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Stop sending the PDFManagerReady
message from the Worker, since it's unused in the API
After PR 8617 the `PDFManagerReady` message handler function, in `src/display/api.js`, is now a no-op. Hence it seems completely unnecessary to keep sending this message from `src/core/worker.js`.
This commit is contained in:
parent
eef53347fe
commit
e89afa5899
2 changed files with 1 additions and 5 deletions
|
@ -629,9 +629,8 @@ var WorkerMessageHandler = {
|
|||
newPdfManager.terminate();
|
||||
throw new Error('Worker was terminated');
|
||||
}
|
||||
|
||||
pdfManager = newPdfManager;
|
||||
handler.send('PDFManagerReady', null);
|
||||
|
||||
pdfManager.onLoadedStream().then(function(stream) {
|
||||
handler.send('DataLoaded', { length: stream.bytes.byteLength, });
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue