remove console.log
This commit is contained in:
parent
802ed6df71
commit
3a139b40ed
@ -167,6 +167,7 @@ export const applyEvent = async (event, socket) => {
|
|||||||
getBackendURL(env.UPLOAD)
|
getBackendURL(env.UPLOAD)
|
||||||
);
|
);
|
||||||
const filename = event.payload.filename || getFilenameFromUrl(downloadUrl);
|
const filename = event.payload.filename || getFilenameFromUrl(downloadUrl);
|
||||||
|
|
||||||
fetch(downloadUrl, {
|
fetch(downloadUrl, {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
headers: { "X-Filename": filename },
|
headers: { "X-Filename": filename },
|
||||||
@ -179,7 +180,7 @@ export const applyEvent = async (event, socket) => {
|
|||||||
.then((blob) => {
|
.then((blob) => {
|
||||||
const blobURL = window.URL.createObjectURL(blob);
|
const blobURL = window.URL.createObjectURL(blob);
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
console.log("Downloading file from ", blobURL, " as ", filename);
|
|
||||||
a.href = blobURL;
|
a.href = blobURL;
|
||||||
a.download = filename;
|
a.download = filename;
|
||||||
a.click();
|
a.click();
|
||||||
|
Loading…
Reference in New Issue
Block a user