1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

[api-minor] Change getPageLabels to always return the pageLabels, even if they are identical to standard page numbering

This commit is contained in:
Jonas Jenwald 2016-01-26 23:01:38 +01:00
parent 1f2910b2a2
commit 1140a34f5c
3 changed files with 17 additions and 17 deletions

View file

@ -343,14 +343,7 @@ var Catalog = (function CatalogClosure() {
currentLabel = '';
currentIndex++;
}
// Ignore PageLabels if they correspond to standard page numbering.
for (i = 0, ii = this.numPages; i < ii; i++) {
if (pageLabels[i] !== (i + 1).toString()) {
break;
}
}
return (i === ii ? [] : pageLabels);
return pageLabels;
},
get attachments() {