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:
Jonas Jenwald 2024-08-02 20:41:41 +02:00
parent a372bf8f4d
commit ecbd660609
4 changed files with 11 additions and 23 deletions

View file

@ -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,
});
}
}