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:
parent
49eba2f892
commit
c77b97daff
5 changed files with 6 additions and 5 deletions
|
@ -709,7 +709,7 @@ class WorkerMessageHandler {
|
|||
fileIds: xref.trailer.get("ID") || null,
|
||||
startXRef: linearization
|
||||
? startXRef
|
||||
: xref.lastXRefStreamPos ?? startXRef,
|
||||
: (xref.lastXRefStreamPos ?? startXRef),
|
||||
filename,
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue