mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 10:08:06 +02:00
Adds RequireJS to worker.
This commit is contained in:
parent
85e95d34ed
commit
fc3282db56
8 changed files with 143 additions and 152 deletions
|
@ -291,3 +291,17 @@ var NetworkManager = (function NetworkManagerClosure() {
|
|||
|
||||
return NetworkManager;
|
||||
})();
|
||||
|
||||
//#if !(FIREFOX || MOZCENTRAL)
|
||||
(function (root, factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
define('pdfjs/core/network', ['exports'], factory);
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
factory(exports);
|
||||
} else {
|
||||
factory((root.pdfjsCoreNetwork = {}));
|
||||
}
|
||||
}(this, function (exports) {
|
||||
exports.NetworkManager = NetworkManager;
|
||||
}));
|
||||
//#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue