More fixes and features to the card-creator #67

Merged
waifu merged 8 commits from card-creator into dev 2025-07-19 21:42:52 -07:00
Showing only changes of commit 98c36f913f - Show all commits

View file

@ -347,6 +347,7 @@ zipBtn.onclick = async () => {
const safePack = (packInput.value || "pack").replace(/[^a-z0-9_\-]/gi, "_");
const imgFileName = `kemoverse_${safePack}_${safeName}.webp`;
const jsonFileName = `kemoverse_${safePack}_${safeName}.json`;
const zipFileName = `kemoverse_${safePack}_${safeName}.zip`;
// Create ZIP
const zip = new JSZip();
@ -360,7 +361,7 @@ zipBtn.onclick = async () => {
const content = await zip.generateAsync({type: "blob"});
const link = document.createElement("a");
link.href = URL.createObjectURL(content);
link.download = `kemoverse_${safePack}_${safeName}.zip`;
link.download = zipFileName;
link.click();
};