mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-25 00:11:43 +02:00
Don't send options we don't need to fetch
This commit is contained in:
parent
662a0e4785
commit
82bc92c326
@ -401,12 +401,7 @@ module.exports = React.createClass({
|
||||
|
||||
// Start a fetch for the download
|
||||
// Based upon https://stackoverflow.com/a/49500465
|
||||
fetch(contentUrl, {
|
||||
headers: new Headers({
|
||||
'Origin': window.location.origin,
|
||||
}),
|
||||
mode: 'cors',
|
||||
}).then((response) => response.blob()).then((blob) => {
|
||||
fetch(contentUrl).then((response) => response.blob()).then((blob) => {
|
||||
const blobUrl = URL.createObjectURL(blob);
|
||||
|
||||
// We have to create an anchor to download the file
|
||||
|
Loading…
x
Reference in New Issue
Block a user