Skip to content

Commit c066977

Browse files
committed
Avoiding pageRefMap is not defined in the getDestinationHash()
1 parent 12d3a75 commit c066977

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/viewer.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ var PDFView = {
238238
pagesRefMap[pageRef.num + ' ' + pageRef.gen + ' R'] = i;
239239
}
240240

241-
this.setScale(scale || kDefaultScale, true);
242-
243241
this.pagesRefMap = pagesRefMap;
244242
this.destinations = pdf.catalog.destinations;
243+
this.setScale(scale || kDefaultScale, true);
244+
245245
if (pdf.catalog.documentOutline) {
246246
this.outline = new DocumentOutlineView(pdf.catalog.documentOutline);
247247
var outlineSwitchButton = document.getElementById('outlineSwitch');

0 commit comments

Comments
 (0)