Skip to content

Commit

Permalink
Fix the helloworld example by setting the PDFNetworkStream class (PR …
Browse files Browse the repository at this point in the history
…8712 follow-up)
  • Loading branch information
wenxcs committed Sep 5, 2017
1 parent cd25a51 commit 585cd93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/helloworld/hello.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit 585cd93

Please sign in to comment.