mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Avoid unnecessary size_kb
calculation, for large files, in PDFDocumentProperties._parseFileSize
(PR 13050 follow-up)
This commit is contained in:
parent
34c9e889ac
commit
bdde621366
1 changed files with 1 additions and 1 deletions
|
@ -262,7 +262,7 @@ class PDFDocumentProperties {
|
|||
}
|
||||
return this.l10n.get(`document_properties_${mb >= 1 ? "mb" : "kb"}`, {
|
||||
size_mb: mb >= 1 && (+mb.toPrecision(3)).toLocaleString(),
|
||||
size_kb: (+kb.toPrecision(3)).toLocaleString(),
|
||||
size_kb: mb < 1 && (+kb.toPrecision(3)).toLocaleString(),
|
||||
size_b: fileSize.toLocaleString(),
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue