mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #12439 from Snuffleupagus/viewer-version-build
Add `version`/`build` info at the top of the *built* `web/viewer.js` file
This commit is contained in:
commit
d86546e14c
1 changed files with 7 additions and 0 deletions
|
@ -15,6 +15,13 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const pdfjsVersion =
|
||||
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_VERSION") : void 0;
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const pdfjsBuild =
|
||||
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
|
||||
|
||||
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("CHROME")) {
|
||||
var defaultUrl; // eslint-disable-line no-var
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue