mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 17:30:09 +02:00
Remove DownloadManager dependency
We can pass it in using the options object. Note that that this also avoids creating a DownloadManager object for each separate link (instead, having only one is enough).
This commit is contained in:
parent
733882ac25
commit
4c6ca1c78f
2 changed files with 6 additions and 5 deletions
|
@ -988,7 +988,8 @@ var PDFViewerApplication = {
|
|||
var container = document.getElementById('attachmentsView');
|
||||
self.attachments = new PDFAttachmentView({
|
||||
container: container,
|
||||
attachments: attachments
|
||||
attachments: attachments,
|
||||
downloadManager: new DownloadManager()
|
||||
});
|
||||
self.attachments.render();
|
||||
document.getElementById('viewAttachments').disabled = !attachments;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue