fix: sxcu name

This commit is contained in:
diced 2023-01-14 10:30:24 -08:00
parent 6d49463dad
commit a97ace6e73
No known key found for this signature in database
GPG key ID: 370BD1BA142842D1

View file

@ -87,7 +87,7 @@ export default function ShareX({ user, open, setOpen }) {
'href', 'href',
'data:application/json;charset=utf-8,' + encodeURIComponent(JSON.stringify(config, null, '\t')) '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'; pseudoElement.style.display = 'none';
document.body.appendChild(pseudoElement); document.body.appendChild(pseudoElement);
pseudoElement.click(); pseudoElement.click();