mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Rename FakeWorkerPort to LoopbackPort and export it
This commit is contained in:
parent
de7002dc6c
commit
a80c405941
4 changed files with 89 additions and 80 deletions
|
@ -14,7 +14,8 @@
|
|||
*/
|
||||
|
||||
import {
|
||||
_UnsupportedManager, getDocument, PDFDataRangeTransport, PDFWorker
|
||||
_UnsupportedManager, getDocument, LoopbackPort, PDFDataRangeTransport,
|
||||
PDFWorker
|
||||
} from './api';
|
||||
import {
|
||||
addLinkAttributes, CustomStyle, DEFAULT_LINK_REL, getFilenameFromUrl,
|
||||
|
@ -281,6 +282,7 @@ if (typeof PDFJSDev === 'undefined' || !PDFJSDev.test('MOZCENTRAL')) {
|
|||
}
|
||||
|
||||
PDFJS.getDocument = getDocument;
|
||||
PDFJS.LoopbackPort = LoopbackPort;
|
||||
PDFJS.PDFDataRangeTransport = PDFDataRangeTransport;
|
||||
PDFJS.PDFWorker = PDFWorker;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue