mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 09:20:06 +02:00
Replace pdfjsLib with module that represents pdf.js.
This commit is contained in:
parent
006e8fb59d
commit
4165cedc9f
16 changed files with 133 additions and 93 deletions
|
@ -12,21 +12,22 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals pdfjsLib */
|
||||
|
||||
'use strict';
|
||||
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs-web/password_prompt', ['exports',
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/overlay_manager'], factory);
|
||||
'pdfjs-web/ui_utils', 'pdfjs-web/overlay_manager', 'pdfjs-web/pdfjs'],
|
||||
factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports, require('./ui_utils.js'), require('./overlay_manager.js'));
|
||||
factory(exports, require('./ui_utils.js'), require('./overlay_manager.js'),
|
||||
require('./pdfjs.js'));
|
||||
} else {
|
||||
factory((root.pdfjsWebPasswordPrompt = {}), root.pdfjsWebUIUtils,
|
||||
root.pdfjsWebOverlayManager);
|
||||
root.pdfjsWebOverlayManager, root.pdfjsWebPDFJS);
|
||||
}
|
||||
}(this, function (exports, uiUtils, overlayManager) {
|
||||
}(this, function (exports, uiUtils, overlayManager, pdfjsLib) {
|
||||
|
||||
var mozL10n = uiUtils.mozL10n;
|
||||
var OverlayManager = overlayManager.OverlayManager;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue