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:
parent
cbbb9bb82d
commit
f340dd5cd5
5 changed files with 78 additions and 15 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue