From 9a93028eae45e99b4ecb340cc2a9eba3b396aa3b Mon Sep 17 00:00:00 2001 From: celebrateyang Date: Sun, 8 Jun 2025 12:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9Blog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/save/buttons/DownloadButton.svelte | 2 +- web/src/lib/api/api.ts | 12 +++--------- web/src/routes/+page.svelte | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/web/src/components/save/buttons/DownloadButton.svelte b/web/src/components/save/buttons/DownloadButton.svelte index 2fb4555d..6ce43dbd 100644 --- a/web/src/components/save/buttons/DownloadButton.svelte +++ b/web/src/components/save/buttons/DownloadButton.svelte @@ -60,7 +60,7 @@ } }; export const download = async (link: string) => { // Log the link being processed - console.log("[Cobalt BAM] Download button clicked for link:", link); + changeDownloadButton("think"); diff --git a/web/src/lib/api/api.ts b/web/src/lib/api/api.ts index 0a9e7bbb..d24d8093 100644 --- a/web/src/lib/api/api.ts +++ b/web/src/lib/api/api.ts @@ -35,9 +35,6 @@ const request = async (url: string) => { alwaysProxy: getSetting("privacy", "alwaysProxy"), } - // Log the URL being submitted to the backend - console.log("[Cobalt BAM] Submitting URL to backend:", url); - console.log("[Cobalt BAM] Full request object:", request); /*await apiOverrideWarning();*/ @@ -61,10 +58,8 @@ const request = async (url: string) => { code: "error.captcha_ongoing" } } as CobaltErrorResponse; - } const api = currentApiURL(); - - console.log("[Cobalt BAM] Making POST request to:", api); - + } + const api = currentApiURL(); const session = getCachedInfo?.info?.cobalt?.turnstileSitekey ? await getSession() : undefined; @@ -106,8 +101,7 @@ const request = async (url: string) => { } as CobaltErrorResponse; } }); - // Log the API response - console.log("[Cobalt BAM] API Response:", response); + return response; } diff --git a/web/src/routes/+page.svelte b/web/src/routes/+page.svelte index 032e9944..a1b3bb00 100644 --- a/web/src/routes/+page.svelte +++ b/web/src/routes/+page.svelte @@ -54,7 +54,7 @@