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();