mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
移除一些log
This commit is contained in:
parent
c9d6b5d1e3
commit
9a93028eae
@ -60,7 +60,7 @@
|
|||||||
}
|
}
|
||||||
}; export const download = async (link: string) => {
|
}; export const download = async (link: string) => {
|
||||||
// Log the link being processed
|
// Log the link being processed
|
||||||
console.log("[Cobalt BAM] Download button clicked for link:", link);
|
|
||||||
|
|
||||||
changeDownloadButton("think");
|
changeDownloadButton("think");
|
||||||
|
|
||||||
|
@ -35,9 +35,6 @@ const request = async (url: string) => {
|
|||||||
alwaysProxy: getSetting("privacy", "alwaysProxy"),
|
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();*/
|
/*await apiOverrideWarning();*/
|
||||||
|
|
||||||
@ -61,10 +58,8 @@ const request = async (url: string) => {
|
|||||||
code: "error.captcha_ongoing"
|
code: "error.captcha_ongoing"
|
||||||
}
|
}
|
||||||
} as CobaltErrorResponse;
|
} as CobaltErrorResponse;
|
||||||
} const api = currentApiURL();
|
}
|
||||||
|
const api = currentApiURL();
|
||||||
console.log("[Cobalt BAM] Making POST request to:", api);
|
|
||||||
|
|
||||||
const session = getCachedInfo?.info?.cobalt?.turnstileSitekey
|
const session = getCachedInfo?.info?.cobalt?.turnstileSitekey
|
||||||
? await getSession() : undefined;
|
? await getSession() : undefined;
|
||||||
|
|
||||||
@ -106,8 +101,7 @@ const request = async (url: string) => {
|
|||||||
} as CobaltErrorResponse;
|
} as CobaltErrorResponse;
|
||||||
} });
|
} });
|
||||||
|
|
||||||
// Log the API response
|
|
||||||
console.log("[Cobalt BAM] API Response:", response);
|
|
||||||
|
|
||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<div class="notification" role="alert">
|
<div class="notification" role="alert">
|
||||||
<div class="notification-content">
|
<div class="notification-content">
|
||||||
<span class="notification-icon">🎉</span>
|
<span class="notification-icon">🎉</span>
|
||||||
<span class="notification-text">竹子下载遇到了些问题,正在维修中...</span> <button
|
<span class="notification-text">最新功能:你可以在的设备中传输文件和文本,完全加密传输,保护隐私性!</span> <button
|
||||||
class="notification-close"
|
class="notification-close"
|
||||||
aria-label="关闭通知"
|
aria-label="关闭通知"
|
||||||
on:click={closeNotification}
|
on:click={closeNotification}
|
||||||
|
Loading…
Reference in New Issue
Block a user