From 2aeb2f005f40b240fd7b5710196af4cae7cbabad Mon Sep 17 00:00:00 2001 From: Arnaud Date: Tue, 15 Oct 2024 13:50:59 +0200 Subject: [PATCH] Download the file from the network --- src/components/Download/Download.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/Download/Download.tsx b/src/components/Download/Download.tsx index 529c312..5ba8b44 100644 --- a/src/components/Download/Download.tsx +++ b/src/components/Download/Download.tsx @@ -5,10 +5,9 @@ import { CodexSdk } from "../../sdk/codex"; export function Download() { const [cid, setCid] = useState(""); - console.info(cid); const onDownload = () => { const url = CodexSdk.url() + "/api/codex/v1/data/"; - window.open(url + cid, "_target"); + window.open(url + cid + "/network", "_target"); }; const onCidChange = (e: ChangeEvent) =>