mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 15:48:06 +02:00
Merge pull request #6825 from yurydelendik/pdfjsumd
Adds UMD header to pdf.js and pdf.worker.js files.
This commit is contained in:
commit
4a215f0892
8 changed files with 150 additions and 49 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