1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-21 15:48:06 +02:00

Adds pdfjs/main_loader module to better mirror pdfjs-dist/build/pdf.

This commit is contained in:
Yury Delendik 2015-12-30 13:28:57 -06:00
parent cbbb9bb82d
commit f340dd5cd5
5 changed files with 78 additions and 15 deletions

View file

@ -1335,11 +1335,8 @@ window.PDFView = PDFViewerApplication; // obsolete name, using it as an alias
function webViewerLoad(evt) {
//#if !PRODUCTION
require.config({paths: {'pdfjs': '../src'}});
require(['pdfjs/display/api',
'pdfjs/display/annotation_layer',
'pdfjs/display/text_layer',
'pdfjs/display/metadata'],
function (api, annotationLayer, textLayer, metadata) {
require(['pdfjs/main_loader'],
function (loader) {
configure(PDFJS);
PDFViewerApplication.initialize().then(webViewerInitialized);
});