mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Stop sending the unused options
parameter to various download-methods in the viewer
The `options` handling, for the download-methods, was originally added in PR 16391 and became obsolete in PR 17771. This fixes failures, in mozilla-central tests, which appeared after landing PR 18527.
This commit is contained in:
parent
a372bf8f4d
commit
ecbd660609
4 changed files with 11 additions and 23 deletions
|
@ -133,7 +133,7 @@ class DownloadManager {
|
|||
return false;
|
||||
}
|
||||
|
||||
download(data, url, filename, options = {}) {
|
||||
download(data, url, filename) {
|
||||
const blobUrl = data
|
||||
? URL.createObjectURL(new Blob([data], { type: "application/pdf" }))
|
||||
: null;
|
||||
|
@ -142,7 +142,6 @@ class DownloadManager {
|
|||
blobUrl,
|
||||
originalUrl: url,
|
||||
filename,
|
||||
options,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue