Rename FakeWorkerPort to LoopbackPort and export it

This commit is contained in:
Tobias Schneider 2017-05-02 10:20:13 -07:00
parent de7002dc6c
commit a80c405941
4 changed files with 89 additions and 80 deletions

View file

@ -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;