mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 18:25:37 +02:00
Adds UMD header to pdf.js and pdf.worker.js files.
This commit is contained in:
parent
e8db825512
commit
cbbb9bb82d
6 changed files with 77 additions and 39 deletions
|
@ -12,7 +12,7 @@
|
|||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
/* globals global */
|
||||
/* globals global, pdfjsVersion, pdfjsBuild */
|
||||
|
||||
'use strict';
|
||||
|
||||
|
@ -39,6 +39,13 @@
|
|||
globalScope.PDFJS = {};
|
||||
}
|
||||
|
||||
if (typeof pdfjsVersion !== 'undefined') {
|
||||
globalScope.PDFJS.version = pdfjsVersion;
|
||||
}
|
||||
if (typeof pdfjsVersion !== 'undefined') {
|
||||
globalScope.PDFJS.build = pdfjsBuild;
|
||||
}
|
||||
|
||||
globalScope.PDFJS.pdfBug = false;
|
||||
|
||||
exports.globalScope = globalScope;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue