소스 검색

remove console.log

Lendemor 1 년 전
부모
커밋
3a139b40ed
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      reflex/.templates/web/utils/state.js

+ 2 - 1
reflex/.templates/web/utils/state.js

@@ -167,6 +167,7 @@ export const applyEvent = async (event, socket) => {
       getBackendURL(env.UPLOAD)
     );
     const filename = event.payload.filename || getFilenameFromUrl(downloadUrl);
+
     fetch(downloadUrl, {
       method: "GET",
       headers: { "X-Filename": filename },
@@ -179,7 +180,7 @@ export const applyEvent = async (event, socket) => {
       .then((blob) => {
         const blobURL = window.URL.createObjectURL(blob);
         const a = document.createElement("a");
-        console.log("Downloading file from ", blobURL, " as ", filename);
+
         a.href = blobURL;
         a.download = filename;
         a.click();