mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
commit
b46443f0c1
20 changed files with 69 additions and 255 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue