Exposes all functional members via lib exports and use them in viewer.
This commit is contained in:
parent
1d12aed5ca
commit
1e3e14e6b2
25 changed files with 174 additions and 102 deletions
|
@ -13,7 +13,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
/* globals chrome, PDFJS, PDFViewerApplication, OverlayManager */
|
||||
/* globals chrome, pdfjsLib, PDFViewerApplication, OverlayManager */
|
||||
'use strict';
|
||||
|
||||
var ChromeCom = (function ChromeComClosure() {
|
||||
|
@ -81,7 +81,7 @@ var ChromeCom = (function ChromeComClosure() {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (/^filesystem:/.test(file) && !PDFJS.disableWorker) {
|
||||
if (/^filesystem:/.test(file) && !pdfjsLib.PDFJS.disableWorker) {
|
||||
// The security origin of filesystem:-URLs are not preserved when the
|
||||
// URL is passed to a Web worker, (http://crbug.com/362061), so we have
|
||||
// to create an intermediate blob:-URL as a work-around.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue