mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-21 23:58:07 +02:00
Detect download filename based on full URL
This commit is contained in:
parent
d9f90d595d
commit
228d253f30
1 changed files with 3 additions and 1 deletions
|
@ -737,7 +737,9 @@ var PDFViewerApplication = {
|
|||
}
|
||||
|
||||
var url = this.baseUrl;
|
||||
var filename = getPDFFileNameFromURL(url);
|
||||
// Use this.url instead of this.baseUrl to perform filename detection based
|
||||
// on the reference fragment as ultimate fallback if needed.
|
||||
var filename = getPDFFileNameFromURL(this.url);
|
||||
var downloadManager = this.downloadManager;
|
||||
downloadManager.onerror = function (err) {
|
||||
// This error won't really be helpful because it's likely the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue