mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Merge pull request #1241 from notmasteryet/issue-1237
Fixes "invalid 'in' operand destKind"
This commit is contained in:
commit
fe6ded204d
1 changed files with 2 additions and 1 deletions
|
@ -320,7 +320,8 @@ var PDFView = {
|
|||
if (pageNumber) {
|
||||
var pdfOpenParams = PDFView.getAnchorUrl('#page=' + pageNumber);
|
||||
var destKind = dest[1];
|
||||
if ('name' in destKind && destKind.name == 'XYZ') {
|
||||
if (typeof destKind === 'object' && 'name' in destKind &&
|
||||
destKind.name == 'XYZ') {
|
||||
var scale = (dest[4] || this.currentScale);
|
||||
pdfOpenParams += '&zoom=' + (scale * 100);
|
||||
if (dest[2] || dest[3]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue