Introduces UMD headers to the web/ folder.
This commit is contained in:
parent
1c253e6e1d
commit
006e8fb59d
39 changed files with 836 additions and 281 deletions
|
@ -16,6 +16,16 @@
|
|||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/pdf_attachment_viewer', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsWebPDFAttachmentViewer = {}));
|
||||
}
|
||||
}(this, function (exports) {
|
||||
|
||||
/**
|
||||
* @typedef {Object} PDFAttachmentViewerOptions
|
||||
* @property {HTMLDivElement} container - The viewer element.
|
||||
|
@ -114,3 +124,6 @@ var PDFAttachmentViewer = (function PDFAttachmentViewerClosure() {
|
|||
|
||||
return PDFAttachmentViewer;
|
||||
})();
|
||||
|
||||
exports.PDFAttachmentViewer = PDFAttachmentViewer;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue