Skip to content

Commit

Permalink
Remove outdated comment
Browse files Browse the repository at this point in the history
Since PDF.js was bumped to 2.5.207 in 4705de4 the event listened to
is "DOMContentLoaded" rather than "webviewerloaded".

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
  • Loading branch information
danxuliu committed Jul 12, 2023
1 parent 6ed8566 commit 57b0a16
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/workersrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@ const queryString = window.location.search
const urlParams = new URLSearchParams(queryString)
const canDownload = urlParams.get('canDownload')

// When "PDFViewerApplication.webViewerInitialized" is executed (once
// "PDFViewerApplication.initialize" is done) it opens the PDF file via URL,
// which requires the PDFViewerApplication to be properly configured, so the
// custom initialization has to be executed before that. This can be done by
// listening to the "webviewerloaded" event, which is emitted after
// "PDFViewerApplication" and "PDFViewerApplicationOptions" are globally set and
// before "PDFViewerApplication.initialize" is executed.
function initializeCustomPDFViewerApplication() {
const head = document.getElementsByTagName('head')[0]

Expand Down

0 comments on commit 57b0a16

Please sign in to comment.