Adds node.js logic for networking tasks for PDF.js

This commit is contained in:
Mukul Mishra 2017-07-13 21:24:10 +05:30
parent cb10c03d0a
commit ed78b23ff2
3 changed files with 220 additions and 4 deletions

View file

@ -18,7 +18,6 @@ import {
UnexpectedResponseException
} from '../shared/util';
import globalScope from '../shared/global_scope';
import { setPDFNetworkStreamClass } from './api';
if (typeof PDFJSDev !== 'undefined' && PDFJSDev.test('FIREFOX || MOZCENTRAL')) {
throw new Error('Module "./network" shall not ' +
@ -594,8 +593,6 @@ PDFNetworkStreamRangeRequestReader.prototype = {
},
};
setPDFNetworkStreamClass(PDFNetworkStream);
export {
PDFNetworkStream,
NetworkManager,