mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Reset the outline sidebar on each load.
This commit is contained in:
parent
c593c092c9
commit
7eeeb17f0f
1 changed files with 2 additions and 0 deletions
|
@ -1134,6 +1134,8 @@ var ThumbnailView = function thumbnailView(container, pdfPage, id) {
|
|||
|
||||
var DocumentOutlineView = function documentOutlineView(outline) {
|
||||
var outlineView = document.getElementById('outlineView');
|
||||
while (outlineView.firstChild)
|
||||
outlineView.removeChild(outlineView.firstChild);
|
||||
|
||||
function bindItemLink(domObj, item) {
|
||||
domObj.href = PDFView.getDestinationHash(item.dest);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue