mirror of
https://github.com/redstrate/Auracite.git
synced 2025-04-27 06:37:46 +00:00
When downloading the archive, use the character name as the filename
This commit is contained in:
parent
acb42a7cb6
commit
505924cc02
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,10 @@
|
|||
archive_character_base64(document.getElementById("name").value, document.getElementById("scales").checked).then((uri) => {
|
||||
// Download character archive
|
||||
window.location.replace(uri);
|
||||
var link = document.createElement('a');
|
||||
link.download = document.getElementById("name").value + ".zip";
|
||||
link.href = uri;
|
||||
link.click();
|
||||
document.getElementById("statusMessage").innerText = "Archive complete!";
|
||||
}).catch((err) => {
|
||||
document.getElementById("statusMessage").innerText = err;
|
||||
|
|
Loading…
Add table
Reference in a new issue