diff --git a/web/pdf_attachment_view.js b/web/pdf_attachment_view.js index fd015040c..2d920001c 100644 --- a/web/pdf_attachment_view.js +++ b/web/pdf_attachment_view.js @@ -18,7 +18,7 @@ 'use strict'; -var DocumentAttachmentsView = function documentAttachmentsView(options) { +var PDFAttachmentView = function documentAttachmentsView(options) { var attachments = options.attachments; var attachmentsView = options.attachmentsView; while (attachmentsView.firstChild) { diff --git a/web/viewer.js b/web/viewer.js index 85340c4d2..dfce6862f 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -19,7 +19,7 @@ PDFHistory, Preferences, SidebarView, ViewHistory, Stats, PDFThumbnailViewer, URL, noContextMenuHandler, SecondaryToolbar, PasswordPrompt, PresentationMode, HandTool, Promise, - DocumentProperties, PDFOutlineView, DocumentAttachmentsView, + DocumentProperties, PDFOutlineView, PDFAttachmentView, OverlayManager, PDFFindController, PDFFindBar, getVisibleElements, watchScroll, PDFViewer, PDFRenderingQueue, PresentationModeState, RenderingStates, DEFAULT_SCALE, UNKNOWN_SCALE, @@ -986,7 +986,7 @@ var PDFViewerApplication = { }); pdfDocument.getAttachments().then(function(attachments) { var attachmentsView = document.getElementById('attachmentsView'); - self.attachments = new DocumentAttachmentsView({ + self.attachments = new PDFAttachmentView({ attachments: attachments, attachmentsView: attachmentsView });