From a97ace6e732305bdea1eeb237c213d3d947ab57c Mon Sep 17 00:00:00 2001 From: diced Date: Sat, 14 Jan 2023 10:30:24 -0800 Subject: [PATCH] fix: sxcu name --- src/components/pages/Manage/ShareX.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/pages/Manage/ShareX.tsx b/src/components/pages/Manage/ShareX.tsx index fbd0ff0..a7bcb88 100644 --- a/src/components/pages/Manage/ShareX.tsx +++ b/src/components/pages/Manage/ShareX.tsx @@ -87,7 +87,7 @@ export default function ShareX({ user, open, setOpen }) { 'href', 'data:application/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(config, null, '\t')) ); - pseudoElement.setAttribute('download', 'zipline.sxcu'); + pseudoElement.setAttribute('download', `zipline${values.type === 'upload-file' ? '' : '-url'}.sxcu`); pseudoElement.style.display = 'none'; document.body.appendChild(pseudoElement); pseudoElement.click();