Fix unwanted data transmission to third party

This commit is contained in:
2023-06-15 19:12:49 +08:00
parent bdb03e07fc
commit cd156c5595
3 changed files with 3 additions and 67 deletions
+3 -28
View File
@@ -272,21 +272,6 @@ export function PreviewActions(props: {
const onRenderMsgs = (msgs: ChatMessage[]) => {
setShouldExport(false);
api
.share(msgs)
.then((res) => {
if (!res) return;
copyToClipboard(res);
setTimeout(() => {
window.open(res, "_blank");
}, 800);
})
.catch((e) => {
console.error("[Share]", e);
showToast(prettyObject(e));
})
.finally(() => setLoading(false));
};
const share = async () => {
@@ -315,13 +300,6 @@ export function PreviewActions(props: {
icon={<DownloadIcon />}
onClick={props.download}
></IconButton>
<IconButton
text={Locale.Export.Share}
bordered
shadow
icon={loading ? <LoadingIcon /> : <ShareIcon />}
onClick={share}
></IconButton>
</div>
<div
style={{
@@ -437,13 +415,10 @@ export function ImagePreviewer(props: {
</div>
<div>
<div className={styles["main-title"]}>ChatGPT Next Web</div>
<div className={styles["sub-title"]}>
github.com/Yidadaa/ChatGPT-Next-Web
</div>
<div className={styles["main-title"]}>ChatGPT Pro by BBIG FUN</div>
<div className={styles["icons"]}>
<ExportAvatar avatar={config.avatar} />
<span className={styles["icon-space"]}>&</span>
{/* <ExportAvatar avatar={config.avatar} /> */}
{/* <span className={styles["icon-space"]}>&</span> */}
<ExportAvatar avatar={mask.avatar} />
</div>
</div>