Skip to content

Commit d86546e

Browse files
Merge pull request #12439 from Snuffleupagus/viewer-version-build
Add `version`/`build` info at the top of the *built* `web/viewer.js` file
2 parents 88f72d6 + eb0cc7f commit d86546e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

web/viewer.js

+7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515

1616
"use strict";
1717

18+
/* eslint-disable-next-line no-unused-vars */
19+
const pdfjsVersion =
20+
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_VERSION") : void 0;
21+
/* eslint-disable-next-line no-unused-vars */
22+
const pdfjsBuild =
23+
typeof PDFJSDev !== "undefined" ? PDFJSDev.eval("BUNDLE_BUILD") : void 0;
24+
1825
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("CHROME")) {
1926
var defaultUrl; // eslint-disable-line no-var
2027

0 commit comments

Comments
 (0)