Log the build number, in addition to the version, in the viewer

Given that the `build` number allows you to *directly* find the relevant commit, it cannot hurt to log that one as well.
This commit is contained in:
Jonas Jenwald 2022-10-06 12:03:22 +02:00
parent 7d5f7a517c
commit 6bd5ef29ae

View File

@ -1481,7 +1481,7 @@ const PDFViewerApplication = {
console.log(
`PDF ${pdfDocument.fingerprints[0]} [${info.PDFFormatVersion} ` +
`${(info.Producer || "-").trim()} / ${(info.Creator || "-").trim()}] ` +
`(PDF.js: ${version || "-"})`
`(PDF.js: ${version || "?"} [${build || "?"}])`
);
let pdfTitle = info.Title;