Remove the sourceEventType from the viewer (bug 1757771 follow-up)

After the changes in https://bugzilla.mozilla.org/show_bug.cgi?id=1757771, that simplified the MOZCENTRAL downloading code, the `sourceEventType` is now completely unused and should thus be removed (in my opinion).

Furthermore, with these changes, we also no longer need a *separate* internal "save"-event and can instead just use the older "download"-event everywhere.
This commit is contained in:
Jonas Jenwald 2022-02-19 11:47:24 +01:00
parent 60e9065bf6
commit 4f1cd6a9c2
5 changed files with 16 additions and 29 deletions

View file

@ -267,9 +267,8 @@ class IDownloadManager {
* @param {Blob} blob
* @param {string} url
* @param {string} filename
* @param {string} [sourceEventType]
*/
download(blob, url, filename, sourceEventType = "download") {}
download(blob, url, filename) {}
}
/**