Add version
/build
info at the top of the *built* web/viewer.js
file
This should be helpful to easily determine the *exact* version of the viewer itself, when looking at a *built* `web/viewer.js` file. Note that we're already including this information in other built files, such as e.g. `pdf.js`, `pdf.worker.js`, `pdf_viewer.js`, and `pdf.image_decoders.js`.
This commit is contained in:
parent
88f72d6b1c
commit
eb0cc7f9c3
@ -15,6 +15,13 @@
|
|||||||
|
|
||||||
"use strict";
|
"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")) {
|
if (typeof PDFJSDev !== "undefined" && PDFJSDev.test("CHROME")) {
|
||||||
var defaultUrl; // eslint-disable-line no-var
|
var defaultUrl; // eslint-disable-line no-var
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user