mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Fix the helloworld example by setting the PDFNetworkStream class (PR 8712 follow-up)
This commit is contained in:
parent
cd25a51abe
commit
585cd933b7
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ Promise.all([System.import('pdfjs/display/api'),
|
|||
System.import('pdfjs/display/network'),
|
||||
System.resolve('pdfjs/worker_loader')])
|
||||
.then(function (modules) {
|
||||
var api = modules[0], global = modules[1];
|
||||
var api = modules[0], global = modules[1], network = modules[2];
|
||||
api.setPDFNetworkStreamClass(network.PDFNetworkStream);
|
||||
|
||||
// In production, change this to point to the built `pdf.worker.js` file.
|
||||
global.PDFJS.workerSrc = modules[3];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue