mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
Initialize PDFView.url = ''
The absence of this property caused the following error in PDFView.download: Cannot read property 'split' of undefined This property was unset when the PDF was loaded through a typed array instead of a URL. With the fix, the file name will default to "document.pdf", as defined by getPDFFileNameFromURL in web/ui_utils.js
This commit is contained in:
parent
2642583e82
commit
bb13fb939e
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ var PDFView = {
|
|||
isViewerEmbedded: (window.parent !== window),
|
||||
idleTimeout: null,
|
||||
currentPosition: null,
|
||||
url: '',
|
||||
|
||||
// called once when the document is loaded
|
||||
initialize: function pdfViewInitialize() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue