Merge pull request #9077 from yurydelendik/v2

Version 2.0 merge
This commit is contained in:
Brendan Dahl 2017-10-31 14:24:20 -07:00 committed by GitHub
commit b46443f0c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 69 additions and 255 deletions

View file

@ -260,14 +260,6 @@ class PDFLinkService {
});
}
} else { // Named (or explicit) destination.
if ((typeof PDFJSDev === 'undefined' || PDFJSDev.test('GENERIC')) &&
/^\d+$/.test(hash) && hash <= this.pagesCount) {
console.warn('PDFLinkService_setHash: specifying a page number ' +
'directly after the hash symbol (#) is deprecated, ' +
`please use the "#page=${hash}" form instead.`);
this.page = hash | 0;
}
dest = unescape(hash);
try {
dest = JSON.parse(dest);