1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Update the JS/CSS files for the new Prettier/Stylelint versions

This commit is contained in:
Tim van der Meij 2024-07-13 16:20:22 +02:00
parent 49eba2f892
commit c77b97daff
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
5 changed files with 6 additions and 5 deletions

View file

@ -709,7 +709,7 @@ class WorkerMessageHandler {
fileIds: xref.trailer.get("ID") || null,
startXRef: linearization
? startXRef
: xref.lastXRefStreamPos ?? startXRef,
: (xref.lastXRefStreamPos ?? startXRef),
filename,
};
}

View file

@ -294,7 +294,7 @@ function getDocument(src = {}) {
const enableHWA = src.enableHWA === true;
// Parameters whose default values depend on other parameters.
const length = rangeTransport ? rangeTransport.length : src.length ?? NaN;
const length = rangeTransport ? rangeTransport.length : (src.length ?? NaN);
const useSystemFonts =
typeof src.useSystemFonts === "boolean"
? src.useSystemFonts