mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Refactor LinkAnnotation
slightly to add data.url
/data.dest
at the end
This patch also makes sure that all URLs are converted to the correct encoding.
This commit is contained in:
parent
4a601ffc28
commit
b63ef7a8b6
3 changed files with 60 additions and 49 deletions
|
@ -284,7 +284,7 @@ var LinkAnnotationElement = (function LinkAnnotationElementClosure() {
|
|||
if (this.data.action) {
|
||||
this._bindNamedAction(link, this.data.action);
|
||||
} else {
|
||||
this._bindLink(link, ('dest' in this.data) ? this.data.dest : null);
|
||||
this._bindLink(link, (this.data.dest || null));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue