1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Rename the globals to shorter names.

pdfjsDistBuildPdf=pdfjsLib
pdfjsDistWebPdfViewer=pdfjsViewer
pdfjsDistBuildPdfWorker=pdfjsWorker
This commit is contained in:
Brendan Dahl 2018-03-15 13:49:28 -07:00
parent 6662985a20
commit 01bff1a81d
14 changed files with 66 additions and 68 deletions

View file

@ -22,13 +22,13 @@
//
// The workerSrc property shall be specified.
//
pdfjsDistBuildPdf.GlobalWorkerOptions.workerSrc =
pdfjsLib.GlobalWorkerOptions.workerSrc =
'../../node_modules/pdfjs-dist/build/pdf.worker.js';
//
// Asynchronous download PDF
//
pdfjsDistBuildPdf.getDocument(url).then(function getPdfHelloWorld(pdf) {
pdfjsLib.getDocument(url).then(function getPdfHelloWorld(pdf) {
//
// Fetch the first page
//